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 CHANGED
@@ -22,4 +22,4 @@
22
22
  # ├── test_summarize_pr.py
23
23
  # └── ...
24
24
 
25
- __version__ = "0.0.94"
25
+ __version__ = "0.0.96"
@@ -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 = runs_response.json().get("workflow_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
 
@@ -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 not any(item in end_lower for item in REDIRECT_END_IGNORE_LIST)
151
- and not any(item in start_lower for item in REDIRECT_START_IGNORE_LIST)
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 = search_urls[0]
244
- for alt_url in search_urls:
245
- if is_url(alt_url, session):
246
- best_url = alt_url
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)
@@ -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
- - Links: Use descriptive anchor text like "See the [Ultralytics Docs](https://docs.ultralytics.com) for details."
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.94
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
  [![Ultralytics Actions](https://github.com/ultralytics/actions/actions/workflows/format.yml/badge.svg)](https://github.com/ultralytics/actions/actions/workflows/format.yml)
49
49
  [![codecov](https://codecov.io/github/ultralytics/actions/graph/badge.svg?token=DoizJ1WS6j)](https://codecov.io/github/ultralytics/actions)
50
50
  [![PyPI version](https://badge.fury.io/py/ultralytics-actions.svg)](https://badge.fury.io/py/ultralytics-actions)
51
- [![Downloads](https://static.pepy.tech/badge/ultralytics-actions)](https://www.pepy.tech/projects/ultralytics-actions)
51
+ [![Downloads](https://static.pepy.tech/badge/ultralytics-actions)](https://clickpy.clickhouse.com/dashboard/ultralytics-actions)
52
52
 
53
53
  [![Ultralytics Discord](https://img.shields.io/discord/1089800235347353640?logo=discord&logoColor=white&label=Discord&color=blue)](https://discord.com/invite/ultralytics)
54
54
  [![Ultralytics Forums](https://img.shields.io/discourse/users?server=https%3A%2F%2Fcommunity.ultralytics.com&logo=discourse&label=Forums&color=blue)](https://community.ultralytics.com/)
@@ -1,18 +1,18 @@
1
- actions/__init__.py,sha256=beiJItbtMY50ZwfzwNtbV_UQ9XF4cS6RT0PIYG_Obv4,742
2
- actions/dispatch_actions.py,sha256=vbA4w_B8vMXMen__ck2WoDsUFCELjXOQbpLzZCmqTXg,4240
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=-Mafr_uU5tBIyK6FE0243dg8-yt2TcyF_uG2NOMB4gE,11859
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=IDKZVchLmcGXfAvRyTozcjr9icuUktB-24PMR7VRcSA,3972
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.94.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
14
- ultralytics_actions-0.0.94.dist-info/METADATA,sha256=fvxbskenPnHu71RkefVgFG3PvtiuCU2ugyWmten3HSQ,11628
15
- ultralytics_actions-0.0.94.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
16
- ultralytics_actions-0.0.94.dist-info/entry_points.txt,sha256=rvqr6Juj7lCJL1DQLwMmOrA8R2Q8tyR_dvCe0mYuJ8s,441
17
- ultralytics_actions-0.0.94.dist-info/top_level.txt,sha256=5apM5x80QlJcGbACn1v3fkmIuL1-XQCKcItJre7w7Tw,8
18
- ultralytics_actions-0.0.94.dist-info/RECORD,,
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,,