ultralytics-actions 0.0.40__tar.gz → 0.0.42__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/PKG-INFO +1 -1
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/actions/__init__.py +2 -2
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/actions/first_interaction.py +1 -1
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/actions/summarize_pr.py +1 -1
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/actions/summarize_release.py +8 -8
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/actions/update_markdown_code_blocks.py +1 -1
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/actions/utils/__init__.py +1 -1
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/actions/utils/common_utils.py +1 -1
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/actions/utils/github_utils.py +2 -1
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/actions/utils/openai_utils.py +1 -1
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/pyproject.toml +1 -1
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/tests/test_urls.py +2 -1
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/ultralytics_actions.egg-info/PKG-INFO +1 -1
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/LICENSE +0 -0
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/README.md +0 -0
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/setup.cfg +0 -0
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/ultralytics_actions.egg-info/SOURCES.txt +0 -0
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/ultralytics_actions.egg-info/dependency_links.txt +0 -0
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/ultralytics_actions.egg-info/entry_points.txt +0 -0
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/ultralytics_actions.egg-info/requires.txt +0 -0
- {ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/ultralytics_actions.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: ultralytics-actions
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.42
|
4
4
|
Summary: Ultralytics Actions for GitHub automation and PR management.
|
5
5
|
Author-email: Glenn Jocher <glenn.jocher@ultralytics.com>
|
6
6
|
Maintainer-email: Ultralytics <hello@ultralytics.com>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Ultralytics
|
1
|
+
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
|
2
2
|
|
3
3
|
# project_root/
|
4
4
|
# ├── pyproject.toml
|
@@ -22,4 +22,4 @@
|
|
22
22
|
# ├── test_summarize_pr.py
|
23
23
|
# └── ...
|
24
24
|
|
25
|
-
__version__ = "0.0.
|
25
|
+
__version__ = "0.0.42"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Ultralytics
|
1
|
+
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
|
2
2
|
|
3
3
|
import os
|
4
4
|
import re
|
@@ -17,7 +17,6 @@ from .utils import (
|
|
17
17
|
|
18
18
|
# Environment variables
|
19
19
|
CURRENT_TAG = os.getenv("CURRENT_TAG")
|
20
|
-
PREVIOUS_TAG = os.getenv("PREVIOUS_TAG")
|
21
20
|
|
22
21
|
|
23
22
|
def get_release_diff(repo_name: str, previous_tag: str, latest_tag: str, headers: dict) -> str:
|
@@ -146,13 +145,15 @@ def create_github_release(repo_name: str, tag_name: str, name: str, body: str, h
|
|
146
145
|
|
147
146
|
|
148
147
|
def get_previous_tag() -> str:
|
149
|
-
"""
|
150
|
-
cmd = ["git", "describe", "--tags", "--abbrev=0", "--exclude", CURRENT_TAG]
|
148
|
+
"""Returns previous Git tag or initial commit SHA if no tags exist."""
|
151
149
|
try:
|
150
|
+
# Try to get previous tag first
|
151
|
+
cmd = ["git", "describe", "--tags", "--abbrev=0", "--exclude", CURRENT_TAG]
|
152
152
|
return subprocess.run(cmd, check=True, text=True, capture_output=True).stdout.strip()
|
153
153
|
except subprocess.CalledProcessError:
|
154
|
-
|
155
|
-
|
154
|
+
# If no tags exist, get the initial commit SHA
|
155
|
+
cmd = ["git", "rev-list", "--max-parents=0", "HEAD"]
|
156
|
+
return subprocess.run(cmd, check=True, text=True, capture_output=True).stdout.strip()
|
156
157
|
|
157
158
|
|
158
159
|
def main(*args, **kwargs):
|
@@ -162,9 +163,8 @@ def main(*args, **kwargs):
|
|
162
163
|
if not all([action.token, CURRENT_TAG]):
|
163
164
|
raise ValueError("One or more required environment variables are missing.")
|
164
165
|
|
165
|
-
previous_tag = PREVIOUS_TAG or get_previous_tag()
|
166
|
-
|
167
166
|
# Get the diff between the tags
|
167
|
+
previous_tag = get_previous_tag()
|
168
168
|
diff = get_release_diff(action.repository, previous_tag, CURRENT_TAG, action.headers_diff)
|
169
169
|
|
170
170
|
# Get PRs merged between the tags
|
{ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/ultralytics_actions.egg-info/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: ultralytics-actions
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.42
|
4
4
|
Summary: Ultralytics Actions for GitHub automation and PR management.
|
5
5
|
Author-email: Glenn Jocher <glenn.jocher@ultralytics.com>
|
6
6
|
Maintainer-email: Ultralytics <hello@ultralytics.com>
|
File without changes
|
File without changes
|
File without changes
|
{ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/ultralytics_actions.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
{ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/ultralytics_actions.egg-info/requires.txt
RENAMED
File without changes
|
{ultralytics_actions-0.0.40 → ultralytics_actions-0.0.42}/ultralytics_actions.egg-info/top_level.txt
RENAMED
File without changes
|