ultralytics-actions 0.0.42__py3-none-any.whl → 0.0.43__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- actions/__init__.py +1 -1
- actions/summarize_release.py +7 -7
- {ultralytics_actions-0.0.42.dist-info → ultralytics_actions-0.0.43.dist-info}/METADATA +1 -1
- {ultralytics_actions-0.0.42.dist-info → ultralytics_actions-0.0.43.dist-info}/RECORD +8 -8
- {ultralytics_actions-0.0.42.dist-info → ultralytics_actions-0.0.43.dist-info}/LICENSE +0 -0
- {ultralytics_actions-0.0.42.dist-info → ultralytics_actions-0.0.43.dist-info}/WHEEL +0 -0
- {ultralytics_actions-0.0.42.dist-info → ultralytics_actions-0.0.43.dist-info}/entry_points.txt +0 -0
- {ultralytics_actions-0.0.42.dist-info → ultralytics_actions-0.0.43.dist-info}/top_level.txt +0 -0
actions/__init__.py
CHANGED
actions/summarize_release.py
CHANGED
@@ -17,6 +17,7 @@ from .utils import (
|
|
17
17
|
|
18
18
|
# Environment variables
|
19
19
|
CURRENT_TAG = os.getenv("CURRENT_TAG")
|
20
|
+
PREVIOUS_TAG = os.getenv("PREVIOUS_TAG")
|
20
21
|
|
21
22
|
|
22
23
|
def get_release_diff(repo_name: str, previous_tag: str, latest_tag: str, headers: dict) -> str:
|
@@ -145,15 +146,13 @@ def create_github_release(repo_name: str, tag_name: str, name: str, body: str, h
|
|
145
146
|
|
146
147
|
|
147
148
|
def get_previous_tag() -> str:
|
148
|
-
"""
|
149
|
+
"""Retrieves the previous Git tag, excluding the current tag, using the git describe command."""
|
150
|
+
cmd = ["git", "describe", "--tags", "--abbrev=0", "--exclude", CURRENT_TAG]
|
149
151
|
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
|
-
|
156
|
-
return subprocess.run(cmd, check=True, text=True, capture_output=True).stdout.strip()
|
154
|
+
print("Failed to get previous tag from git. Using previous commit.")
|
155
|
+
return "HEAD~1"
|
157
156
|
|
158
157
|
|
159
158
|
def main(*args, **kwargs):
|
@@ -163,8 +162,9 @@ def main(*args, **kwargs):
|
|
163
162
|
if not all([action.token, CURRENT_TAG]):
|
164
163
|
raise ValueError("One or more required environment variables are missing.")
|
165
164
|
|
165
|
+
previous_tag = PREVIOUS_TAG or get_previous_tag()
|
166
|
+
|
166
167
|
# 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
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: ultralytics-actions
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.43
|
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,15 +1,15 @@
|
|
1
|
-
actions/__init__.py,sha256=
|
1
|
+
actions/__init__.py,sha256=aAmI7gQULg-Fo2bzOA3w9hsgUKEn5tY-anSOCO8tTwk,742
|
2
2
|
actions/first_interaction.py,sha256=n88RWru6ZXttFgmBXVMUBJEXoC9UVIV_TOlOWAR2pO4,17846
|
3
3
|
actions/summarize_pr.py,sha256=Pfcm6ArfZfcMme48FcCGNmMwrFFlsG0czifhXHDKAlY,11166
|
4
|
-
actions/summarize_release.py,sha256=
|
4
|
+
actions/summarize_release.py,sha256=2D1IIeS4xrQNEJER3HItm5u9XvTL8hwGX_jWD2S8q1Y,8455
|
5
5
|
actions/update_markdown_code_blocks.py,sha256=DN6rrDw2VHXUTetrrg1SHlYDco9iaGOfQBKFORqbCBI,6362
|
6
6
|
actions/utils/__init__.py,sha256=Jc--odEZWBrQmgI9C9rPdKIJNj8YW-mCJV71VWQyMCA,434
|
7
7
|
actions/utils/common_utils.py,sha256=-gYRI0KJqG7Ht4JPGUxCYpHRKFfuSGi1lPr__F-SGuw,4086
|
8
8
|
actions/utils/github_utils.py,sha256=0h0Hz2tgUta61Ymn9YggRXBZ7aZdF5krKnX7Tj9jqRU,7068
|
9
9
|
actions/utils/openai_utils.py,sha256=U7DjxTdFGdhmWSE4_KIg1yPQdtrfG4GkbNZCgMw4_1Q,1822
|
10
|
-
ultralytics_actions-0.0.
|
11
|
-
ultralytics_actions-0.0.
|
12
|
-
ultralytics_actions-0.0.
|
13
|
-
ultralytics_actions-0.0.
|
14
|
-
ultralytics_actions-0.0.
|
15
|
-
ultralytics_actions-0.0.
|
10
|
+
ultralytics_actions-0.0.43.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
11
|
+
ultralytics_actions-0.0.43.dist-info/METADATA,sha256=5SL4G92EJxHtNqdGkNNoy7spr6ze5HrCoOpNK1TqXvE,10561
|
12
|
+
ultralytics_actions-0.0.43.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
13
|
+
ultralytics_actions-0.0.43.dist-info/entry_points.txt,sha256=GowvOFplj0C7JmsjbKcbpgLpdf2r921pcaOQkAHWZRA,378
|
14
|
+
ultralytics_actions-0.0.43.dist-info/top_level.txt,sha256=5apM5x80QlJcGbACn1v3fkmIuL1-XQCKcItJre7w7Tw,8
|
15
|
+
ultralytics_actions-0.0.43.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{ultralytics_actions-0.0.42.dist-info → ultralytics_actions-0.0.43.dist-info}/entry_points.txt
RENAMED
File without changes
|
File without changes
|