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.
Files changed (21) hide show
  1. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/PKG-INFO +2 -2
  2. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/README.md +1 -1
  3. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/__init__.py +1 -1
  4. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/first_interaction.py +11 -1
  5. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/utils/common_utils.py +8 -4
  6. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/tests/test_urls.py +1 -0
  7. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/ultralytics_actions.egg-info/PKG-INFO +2 -2
  8. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/LICENSE +0 -0
  9. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/summarize_pr.py +0 -0
  10. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/summarize_release.py +0 -0
  11. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/update_markdown_code_blocks.py +0 -0
  12. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/utils/__init__.py +0 -0
  13. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/utils/github_utils.py +0 -0
  14. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/actions/utils/openai_utils.py +0 -0
  15. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/pyproject.toml +0 -0
  16. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/setup.cfg +0 -0
  17. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/ultralytics_actions.egg-info/SOURCES.txt +0 -0
  18. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/ultralytics_actions.egg-info/dependency_links.txt +0 -0
  19. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/ultralytics_actions.egg-info/entry_points.txt +0 -0
  20. {ultralytics_actions-0.0.37 → ultralytics_actions-0.0.39}/ultralytics_actions.egg-info/requires.txt +0 -0
  21. {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.37
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')
@@ -22,4 +22,4 @@
22
22
  # ├── test_summarize_pr.py
23
23
  # └── ...
24
24
 
25
- __version__ = "0.0.37"
25
+ __version__ = "0.0.39"
@@ -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 ["help wanted", "TODO"]: # normal case
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"))
@@ -10,6 +10,7 @@ URLS = [
10
10
  "https://docs.ultralytics.com/help/contributing",
11
11
  "https://docs.ultralytics.com",
12
12
  "https://ultralytics.com",
13
+ "https://ultralytics.com/images/bus.jpg",
13
14
  "https://github.com/ultralytics/ultralytics",
14
15
  ]
15
16
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ultralytics-actions
3
- Version: 0.0.37
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')