ultralytics-actions 0.0.37__tar.gz → 0.0.39__tar.gz
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.
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/PKG-INFO +2 -2
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/README.md +1 -1
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/__init__.py +1 -1
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/first_interaction.py +11 -1
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/utils/common_utils.py +8 -4
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/tests/test_urls.py +1 -0
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/ultralytics_actions.egg-info/PKG-INFO +2 -2
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/LICENSE +0 -0
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/summarize_pr.py +0 -0
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/summarize_release.py +0 -0
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/update_markdown_code_blocks.py +0 -0
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/utils/__init__.py +0 -0
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/utils/github_utils.py +0 -0
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/utils/openai_utils.py +0 -0
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/pyproject.toml +0 -0
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/setup.cfg +0 -0
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/ultralytics_actions.egg-info/SOURCES.txt +0 -0
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/ultralytics_actions.egg-info/dependency_links.txt +0 -0
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/ultralytics_actions.egg-info/entry_points.txt +0 -0
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/ultralytics_actions.egg-info/requires.txt +0 -0
- {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/ultralytics_actions.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ultralytics-actions
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.39
|
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>
|
@@ -99,7 +99,7 @@ To use this action in your Ultralytics repository:
|
|
99
99
|
labels: true # autolabel issues and PRs
|
100
100
|
python: true # format Python code and docstrings
|
101
101
|
prettier: true # format YAML, JSON, Markdown and CSS
|
102
|
-
swift: true # format Swift code (requires 'macos-latest')
|
102
|
+
swift: true # format Swift code (requires 'macos-latest' runner)
|
103
103
|
spelling: true # check spelling
|
104
104
|
links: true # check broken links
|
105
105
|
summary: true # print PR summary with GPT4o (requires 'openai_api_key')
|
@@ -63,7 +63,7 @@ To use this action in your Ultralytics repository:
|
|
63
63
|
labels: true # autolabel issues and PRs
|
64
64
|
python: true # format Python code and docstrings
|
65
65
|
prettier: true # format YAML, JSON, Markdown and CSS
|
66
|
-
swift: true # format Swift code (requires 'macos-latest')
|
66
|
+
swift: true # format Swift code (requires 'macos-latest' runner)
|
67
67
|
spelling: true # check spelling
|
68
68
|
links: true # check broken links
|
69
69
|
summary: true # print PR summary with GPT4o (requires 'openai_api_key')
|
@@ -123,7 +123,17 @@ def get_relevant_labels(
|
|
123
123
|
) -> List[str]:
|
124
124
|
"""Determines relevant labels for GitHub issues/PRs using OpenAI, considering title, body, and existing labels."""
|
125
125
|
# Remove mutually exclusive labels like both 'bug' and 'question' or inappropriate labels like 'help wanted'
|
126
|
-
for label in
|
126
|
+
for label in {
|
127
|
+
"help wanted",
|
128
|
+
"TODO",
|
129
|
+
"research",
|
130
|
+
"non-reproducible",
|
131
|
+
"popular",
|
132
|
+
"invalid",
|
133
|
+
"Stale",
|
134
|
+
"wontfix",
|
135
|
+
"duplicate",
|
136
|
+
}: # normal case
|
127
137
|
available_labels.pop(label, None) # remove as should only be manually added
|
128
138
|
if "bug" in current_labels:
|
129
139
|
available_labels.pop("question", None)
|
@@ -59,10 +59,10 @@ def is_url(url, check=True, max_attempts=3, timeout=2):
|
|
59
59
|
for attempt in range(max_attempts):
|
60
60
|
try:
|
61
61
|
headers = {
|
62
|
-
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/120.0.0.0",
|
63
|
-
"Accept": "
|
64
|
-
"Accept-Language": "*",
|
65
|
-
"Accept-Encoding": "*",
|
62
|
+
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
|
63
|
+
"Accept": "*/*", # Wildcard for maximum compatibility
|
64
|
+
"Accept-Language": "*", # Wildcard for any language
|
65
|
+
"Accept-Encoding": "*", # Wildcard for any encoding
|
66
66
|
}
|
67
67
|
return requests.head(url, headers=headers, timeout=timeout, allow_redirects=True).status_code < 400
|
68
68
|
except Exception:
|
@@ -105,3 +105,7 @@ def check_links_in_string(text, verbose=True, return_bad=False):
|
|
105
105
|
print(f"WARNING ⚠️ errors found in URLs {bad_urls}")
|
106
106
|
|
107
107
|
return (passing, bad_urls) if return_bad else passing
|
108
|
+
|
109
|
+
|
110
|
+
if __name__ == "__main__":
|
111
|
+
print(is_url("https://ultralytics.com/images/bus.jpg"))
|
{ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/ultralytics_actions.egg-info/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ultralytics-actions
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.39
|
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>
|
@@ -99,7 +99,7 @@ To use this action in your Ultralytics repository:
|
|
99
99
|
labels: true # autolabel issues and PRs
|
100
100
|
python: true # format Python code and docstrings
|
101
101
|
prettier: true # format YAML, JSON, Markdown and CSS
|
102
|
-
swift: true # format Swift code (requires 'macos-latest')
|
102
|
+
swift: true # format Swift code (requires 'macos-latest' runner)
|
103
103
|
spelling: true # check spelling
|
104
104
|
links: true # check broken links
|
105
105
|
summary: true # print PR summary with GPT4o (requires 'openai_api_key')
|
File without changes
|
File without changes
|
File without changes
|
{ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/update_markdown_code_blocks.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/ultralytics_actions.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
{ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/ultralytics_actions.egg-info/requires.txt
RENAMED
File without changes
|
{ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/ultralytics_actions.egg-info/top_level.txt
RENAMED
File without changes
|