ultralytics-actions 0.0.94__py3-none-any.whl → 0.0.96__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/dispatch_actions.py +1 -2
- actions/utils/common_utils.py +7 -7
- actions/utils/openai_utils.py +3 -3
- {ultralytics_actions-0.0.94.dist-info → ultralytics_actions-0.0.96.dist-info}/METADATA +2 -2
- {ultralytics_actions-0.0.94.dist-info → ultralytics_actions-0.0.96.dist-info}/RECORD +10 -10
- {ultralytics_actions-0.0.94.dist-info → ultralytics_actions-0.0.96.dist-info}/WHEEL +0 -0
- {ultralytics_actions-0.0.94.dist-info → ultralytics_actions-0.0.96.dist-info}/entry_points.txt +0 -0
- {ultralytics_actions-0.0.94.dist-info → ultralytics_actions-0.0.96.dist-info}/licenses/LICENSE +0 -0
- {ultralytics_actions-0.0.94.dist-info → ultralytics_actions-0.0.96.dist-info}/top_level.txt +0 -0
actions/__init__.py
CHANGED
actions/dispatch_actions.py
CHANGED
@@ -47,8 +47,7 @@ def trigger_and_get_workflow_info(event, branch: str) -> List[Dict]:
|
|
47
47
|
)
|
48
48
|
|
49
49
|
if runs_response.status_code == 200:
|
50
|
-
runs
|
51
|
-
if runs:
|
50
|
+
if runs := runs_response.json().get("workflow_runs", []):
|
52
51
|
run_url = runs[0].get("html_url", run_url)
|
53
52
|
run_number = runs[0].get("run_number")
|
54
53
|
|
actions/utils/common_utils.py
CHANGED
@@ -85,6 +85,7 @@ REDIRECT_START_IGNORE_LIST = frozenset(
|
|
85
85
|
"docs.openvino.ai",
|
86
86
|
".git",
|
87
87
|
"/raw/", # GitHub images
|
88
|
+
".slack.com", # Slack URLs to private channels
|
88
89
|
}
|
89
90
|
| URL_IGNORE_LIST
|
90
91
|
)
|
@@ -147,8 +148,8 @@ def allow_redirect(start="", end=""):
|
|
147
148
|
return (
|
148
149
|
end
|
149
150
|
and end.startswith("https://")
|
150
|
-
and
|
151
|
-
and
|
151
|
+
and all(item not in end_lower for item in REDIRECT_END_IGNORE_LIST)
|
152
|
+
and all(item not in start_lower for item in REDIRECT_START_IGNORE_LIST)
|
152
153
|
)
|
153
154
|
|
154
155
|
|
@@ -240,11 +241,10 @@ def check_links_in_string(text, verbose=True, return_bad=False, replace=False):
|
|
240
241
|
if not valid and brave_api_key:
|
241
242
|
query = f"{(redirect or url)[:200]} {title[:199]}"
|
242
243
|
if search_urls := brave_search(query, brave_api_key, count=3):
|
243
|
-
best_url =
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
break
|
244
|
+
best_url = next(
|
245
|
+
(alt_url for alt_url in search_urls if is_url(alt_url, session)),
|
246
|
+
search_urls[0],
|
247
|
+
)
|
248
248
|
if url != best_url:
|
249
249
|
replacements[url] = best_url
|
250
250
|
modified_text = modified_text.replace(url, best_url)
|
actions/utils/openai_utils.py
CHANGED
@@ -10,11 +10,11 @@ from actions.utils.common_utils import check_links_in_string
|
|
10
10
|
|
11
11
|
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
12
12
|
OPENAI_MODEL = os.getenv("OPENAI_MODEL", "gpt-5-2025-08-07")
|
13
|
-
SYSTEM_PROMPT_ADDITION = """
|
14
|
-
Guidance:
|
13
|
+
SYSTEM_PROMPT_ADDITION = """Guidance:
|
15
14
|
- Ultralytics Branding: Use YOLO11, YOLO12, etc., not YOLOv11, YOLOv12 (only older versions like YOLOv10 have a v). Always capitalize "HUB" in "Ultralytics HUB"; use "Ultralytics HUB", not "The Ultralytics HUB".
|
16
15
|
- Avoid Equations: Do not include equations or mathematical notations.
|
17
|
-
-
|
16
|
+
- Markdown: Reply in Markdown format.
|
17
|
+
- Links: Use descriptive anchor text for all URLs.
|
18
18
|
- Code:
|
19
19
|
- Provide minimal code examples if helpful.
|
20
20
|
- Enclose code in backticks: `pip install ultralytics` for inline code or e.g. ```python for larger code blocks.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ultralytics-actions
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.96
|
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>
|
@@ -48,7 +48,7 @@ Welcome to the [Ultralytics Actions](https://github.com/ultralytics/actions) rep
|
|
48
48
|
[](https://github.com/ultralytics/actions/actions/workflows/format.yml)
|
49
49
|
[](https://codecov.io/github/ultralytics/actions)
|
50
50
|
[](https://badge.fury.io/py/ultralytics-actions)
|
51
|
-
[](https://
|
51
|
+
[](https://clickpy.clickhouse.com/dashboard/ultralytics-actions)
|
52
52
|
|
53
53
|
[](https://discord.com/invite/ultralytics)
|
54
54
|
[](https://community.ultralytics.com/)
|
@@ -1,18 +1,18 @@
|
|
1
|
-
actions/__init__.py,sha256=
|
2
|
-
actions/dispatch_actions.py,sha256=
|
1
|
+
actions/__init__.py,sha256=0NfB2723MeJuRiKYknMyOVfROaYqBRwbWZZa9Tqqt4Q,742
|
2
|
+
actions/dispatch_actions.py,sha256=7Rh27L3aB2jyysFp_sDMWFlsYAVHDBrf_re0qvEMir8,4224
|
3
3
|
actions/first_interaction.py,sha256=EL131PalWKwzLhNKqL07zqI8Qsoydv1UyUyyt2EvnRg,16512
|
4
4
|
actions/summarize_pr.py,sha256=K7Kf22AspUY10GtLUK8DhKgXz2yEDIE3BjpLgPn6niQ,10463
|
5
5
|
actions/summarize_release.py,sha256=BM2kcnqGp16n-6uSdGKjKhrbqJLtkvbHqOIZFFs7nmY,8635
|
6
6
|
actions/update_file_headers.py,sha256=dAu8RWOn-CkuFZHa5LT1-BvNxYX4FRQe2B1UDAjvG3I,6648
|
7
7
|
actions/update_markdown_code_blocks.py,sha256=9PL7YIQfApRNAa0que2hYHv7umGZTZoHlblesB0xFj4,8587
|
8
8
|
actions/utils/__init__.py,sha256=7k4cmFX0Td99Uzgsd8Mm-E0xq5kQ5ZJoPM_oGCVD4CU,804
|
9
|
-
actions/utils/common_utils.py,sha256
|
9
|
+
actions/utils/common_utils.py,sha256=fqg0tdzGmIdWBn7LN93lkFyR6d2nc46veczWRR1FlRs,11872
|
10
10
|
actions/utils/github_utils.py,sha256=wjivM9FPZwaItXpQiYbGbnGdK6v4ayLEFvQT2xhRLq4,8202
|
11
|
-
actions/utils/openai_utils.py,sha256=
|
11
|
+
actions/utils/openai_utils.py,sha256=ozBdYIZd35R0MWrA8tys5pJuWGpQpWHQIEGF-e1oZr8,3948
|
12
12
|
actions/utils/version_utils.py,sha256=lKY2lLtYdxejKvqD9hFJiARMrYMHnP_KC_zmcLUmD20,3188
|
13
|
-
ultralytics_actions-0.0.
|
14
|
-
ultralytics_actions-0.0.
|
15
|
-
ultralytics_actions-0.0.
|
16
|
-
ultralytics_actions-0.0.
|
17
|
-
ultralytics_actions-0.0.
|
18
|
-
ultralytics_actions-0.0.
|
13
|
+
ultralytics_actions-0.0.96.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
14
|
+
ultralytics_actions-0.0.96.dist-info/METADATA,sha256=OfJN88MZ77G88WJnJ7BjK8Y12Wqgchq4woQ5yBQN0Os,11638
|
15
|
+
ultralytics_actions-0.0.96.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
16
|
+
ultralytics_actions-0.0.96.dist-info/entry_points.txt,sha256=rvqr6Juj7lCJL1DQLwMmOrA8R2Q8tyR_dvCe0mYuJ8s,441
|
17
|
+
ultralytics_actions-0.0.96.dist-info/top_level.txt,sha256=5apM5x80QlJcGbACn1v3fkmIuL1-XQCKcItJre7w7Tw,8
|
18
|
+
ultralytics_actions-0.0.96.dist-info/RECORD,,
|
File without changes
|
{ultralytics_actions-0.0.94.dist-info → ultralytics_actions-0.0.96.dist-info}/entry_points.txt
RENAMED
File without changes
|
{ultralytics_actions-0.0.94.dist-info → ultralytics_actions-0.0.96.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|