ultralytics-actions 0.1.3__tar.gz → 0.1.4__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.
Potentially problematic release.
This version of ultralytics-actions might be problematic. Click here for more details.
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/PKG-INFO +3 -3
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/README.md +2 -2
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/actions/__init__.py +1 -1
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/actions/first_interaction.py +1 -1
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/actions/review_pr.py +1 -1
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/actions/utils/github_utils.py +2 -2
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/actions/utils/openai_utils.py +3 -2
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/ultralytics_actions.egg-info/PKG-INFO +3 -3
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/LICENSE +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/actions/dispatch_actions.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/actions/summarize_pr.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/actions/summarize_release.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/actions/update_file_headers.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/actions/update_markdown_code_blocks.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/actions/utils/__init__.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/actions/utils/common_utils.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/actions/utils/version_utils.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/pyproject.toml +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/setup.cfg +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/tests/test_cli_commands.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/tests/test_common_utils.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/tests/test_dispatch_actions.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/tests/test_file_headers.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/tests/test_first_interaction.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/tests/test_github_utils.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/tests/test_init.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/tests/test_openai_utils.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/tests/test_summarize_pr.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/tests/test_summarize_release.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/tests/test_update_markdown_codeblocks.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/tests/test_urls.py +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/ultralytics_actions.egg-info/SOURCES.txt +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/ultralytics_actions.egg-info/dependency_links.txt +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/ultralytics_actions.egg-info/entry_points.txt +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/ultralytics_actions.egg-info/requires.txt +0 -0
- {ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/ultralytics_actions.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ultralytics-actions
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
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>
|
|
@@ -64,8 +64,8 @@ Ultralytics Actions automatically applies formats, updates, and enhancements usi
|
|
|
64
64
|
- **Spell Check:** Common misspellings are caught using [codespell](https://github.com/codespell-project/codespell).
|
|
65
65
|
- **Broken Links Check:** Broken links in documentation and Markdown files are identified using [Lychee](https://github.com/lycheeverse/lychee).
|
|
66
66
|
- **PR Summary:** Concise Pull Request summaries are generated using [OpenAI](https://openai.com/) GPT-5, improving clarity and review efficiency.
|
|
67
|
-
- **PR Review:** AI-powered
|
|
68
|
-
- **Auto-labeling:**
|
|
67
|
+
- **PR Review:** AI-powered code reviews identify critical bugs, security issues, and code quality concerns with suggested fixes.
|
|
68
|
+
- **Auto-labeling:** Applies relevant labels to issues and PRs via [OpenAI](https://openai.com/) GPT-5 for intelligent categorization.
|
|
69
69
|
|
|
70
70
|
## 🛠️ How It Works
|
|
71
71
|
|
|
@@ -26,8 +26,8 @@ Ultralytics Actions automatically applies formats, updates, and enhancements usi
|
|
|
26
26
|
- **Spell Check:** Common misspellings are caught using [codespell](https://github.com/codespell-project/codespell).
|
|
27
27
|
- **Broken Links Check:** Broken links in documentation and Markdown files are identified using [Lychee](https://github.com/lycheeverse/lychee).
|
|
28
28
|
- **PR Summary:** Concise Pull Request summaries are generated using [OpenAI](https://openai.com/) GPT-5, improving clarity and review efficiency.
|
|
29
|
-
- **PR Review:** AI-powered
|
|
30
|
-
- **Auto-labeling:**
|
|
29
|
+
- **PR Review:** AI-powered code reviews identify critical bugs, security issues, and code quality concerns with suggested fixes.
|
|
30
|
+
- **Auto-labeling:** Applies relevant labels to issues and PRs via [OpenAI](https://openai.com/) GPT-5 for intelligent categorization.
|
|
31
31
|
|
|
32
32
|
## 🛠️ How It Works
|
|
33
33
|
|
|
@@ -196,7 +196,7 @@ def main(*args, **kwargs):
|
|
|
196
196
|
|
|
197
197
|
if summary := response.get("summary"):
|
|
198
198
|
print("Updating PR description with summary...")
|
|
199
|
-
event.update_pr_description(number, SUMMARY_START + summary
|
|
199
|
+
event.update_pr_description(number, SUMMARY_START + summary)
|
|
200
200
|
else:
|
|
201
201
|
summary = body
|
|
202
202
|
|
|
@@ -125,7 +125,7 @@ def generate_pr_review(repository: str, diff_text: str, pr_title: str, pr_descri
|
|
|
125
125
|
]
|
|
126
126
|
|
|
127
127
|
try:
|
|
128
|
-
response = get_completion(messages, reasoning_effort="medium")
|
|
128
|
+
response = get_completion(messages, reasoning_effort="medium", model="gpt-5-codex")
|
|
129
129
|
print("\n" + "=" * 80 + f"\nFULL AI RESPONSE:\n{response}\n" + "=" * 80 + "\n")
|
|
130
130
|
|
|
131
131
|
json_str = re.search(r"```(?:json)?\s*(\{.*?\})\s*```", response, re.DOTALL)
|
|
@@ -281,10 +281,10 @@ class Action:
|
|
|
281
281
|
start = "## 🛠️ PR Summary"
|
|
282
282
|
if start in description:
|
|
283
283
|
print("Existing PR Summary found, replacing.")
|
|
284
|
-
updated_description = description.split(start)[0] + new_summary
|
|
284
|
+
updated_description = description.split(start)[0].rstrip() + "\n\n" + new_summary
|
|
285
285
|
else:
|
|
286
286
|
print("PR Summary not found, appending.")
|
|
287
|
-
updated_description = description + "\n\n" + new_summary
|
|
287
|
+
updated_description = (description.rstrip() + "\n\n" + new_summary) if description.strip() else new_summary
|
|
288
288
|
|
|
289
289
|
self.patch(url, json={"body": updated_description})
|
|
290
290
|
self._pr_summary_cache = new_summary
|
|
@@ -112,6 +112,7 @@ def get_completion(
|
|
|
112
112
|
temperature: float = 1.0,
|
|
113
113
|
reasoning_effort: str = None,
|
|
114
114
|
response_format: dict = None,
|
|
115
|
+
model: str = OPENAI_MODEL,
|
|
115
116
|
) -> str | dict:
|
|
116
117
|
"""Generates a completion using OpenAI's Responses API based on input messages."""
|
|
117
118
|
assert OPENAI_API_KEY, "OpenAI API key is required."
|
|
@@ -122,8 +123,8 @@ def get_completion(
|
|
|
122
123
|
|
|
123
124
|
max_retries = 2
|
|
124
125
|
for attempt in range(max_retries + 2):
|
|
125
|
-
data = {"model":
|
|
126
|
-
if "gpt-5" in
|
|
126
|
+
data = {"model": model, "input": messages, "store": False, "temperature": temperature}
|
|
127
|
+
if "gpt-5" in model:
|
|
127
128
|
data["reasoning"] = {"effort": reasoning_effort or "low"}
|
|
128
129
|
# GPT-5 Responses API handles JSON via prompting, not format parameter
|
|
129
130
|
|
{ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/ultralytics_actions.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ultralytics-actions
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
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>
|
|
@@ -64,8 +64,8 @@ Ultralytics Actions automatically applies formats, updates, and enhancements usi
|
|
|
64
64
|
- **Spell Check:** Common misspellings are caught using [codespell](https://github.com/codespell-project/codespell).
|
|
65
65
|
- **Broken Links Check:** Broken links in documentation and Markdown files are identified using [Lychee](https://github.com/lycheeverse/lychee).
|
|
66
66
|
- **PR Summary:** Concise Pull Request summaries are generated using [OpenAI](https://openai.com/) GPT-5, improving clarity and review efficiency.
|
|
67
|
-
- **PR Review:** AI-powered
|
|
68
|
-
- **Auto-labeling:**
|
|
67
|
+
- **PR Review:** AI-powered code reviews identify critical bugs, security issues, and code quality concerns with suggested fixes.
|
|
68
|
+
- **Auto-labeling:** Applies relevant labels to issues and PRs via [OpenAI](https://openai.com/) GPT-5 for intelligent categorization.
|
|
69
69
|
|
|
70
70
|
## 🛠️ How It Works
|
|
71
71
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/tests/test_update_markdown_codeblocks.py
RENAMED
|
File without changes
|
|
File without changes
|
{ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/ultralytics_actions.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/ultralytics_actions.egg-info/requires.txt
RENAMED
|
File without changes
|
{ultralytics_actions-0.1.3 → ultralytics_actions-0.1.4}/ultralytics_actions.egg-info/top_level.txt
RENAMED
|
File without changes
|