ultralytics-actions 0.0.41__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 +6 -11
- {ultralytics_actions-0.0.41.dist-info → ultralytics_actions-0.0.43.dist-info}/METADATA +1 -1
- {ultralytics_actions-0.0.41.dist-info → ultralytics_actions-0.0.43.dist-info}/RECORD +8 -8
- {ultralytics_actions-0.0.41.dist-info → ultralytics_actions-0.0.43.dist-info}/LICENSE +0 -0
- {ultralytics_actions-0.0.41.dist-info → ultralytics_actions-0.0.43.dist-info}/WHEEL +0 -0
- {ultralytics_actions-0.0.41.dist-info → ultralytics_actions-0.0.43.dist-info}/entry_points.txt +0 -0
- {ultralytics_actions-0.0.41.dist-info → ultralytics_actions-0.0.43.dist-info}/top_level.txt +0 -0
actions/__init__.py
CHANGED
actions/summarize_release.py
CHANGED
@@ -146,15 +146,13 @@ def create_github_release(repo_name: str, tag_name: str, name: str, body: str, h
|
|
146
146
|
|
147
147
|
|
148
148
|
def get_previous_tag() -> str:
|
149
|
-
"""
|
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]
|
150
151
|
try:
|
151
|
-
# Try to get previous tag first
|
152
|
-
cmd = ["git", "describe", "--tags", "--abbrev=0", "--exclude", CURRENT_TAG]
|
153
152
|
return subprocess.run(cmd, check=True, text=True, capture_output=True).stdout.strip()
|
154
153
|
except subprocess.CalledProcessError:
|
155
|
-
|
156
|
-
|
157
|
-
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"
|
158
156
|
|
159
157
|
|
160
158
|
def main(*args, **kwargs):
|
@@ -164,12 +162,9 @@ def main(*args, **kwargs):
|
|
164
162
|
if not all([action.token, CURRENT_TAG]):
|
165
163
|
raise ValueError("One or more required environment variables are missing.")
|
166
164
|
|
165
|
+
previous_tag = PREVIOUS_TAG or get_previous_tag()
|
166
|
+
|
167
167
|
# Get the diff between the tags
|
168
|
-
previous_tag = (
|
169
|
-
PREVIOUS_TAG
|
170
|
-
if PREVIOUS_TAG and "none" not in PREVIOUS_TAG.lower() and PREVIOUS_TAG != CURRENT_TAG
|
171
|
-
else get_previous_tag()
|
172
|
-
)
|
173
168
|
diff = get_release_diff(action.repository, previous_tag, CURRENT_TAG, action.headers_diff)
|
174
169
|
|
175
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.41.dist-info → ultralytics_actions-0.0.43.dist-info}/entry_points.txt
RENAMED
File without changes
|
File without changes
|