ultralytics-actions 0.0.15__py3-none-any.whl → 0.0.22__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/summarize_pr.py +1 -1
- actions/utils/github_utils.py +2 -1
- actions/utils/openai_utils.py +1 -1
- {ultralytics_actions-0.0.15.dist-info → ultralytics_actions-0.0.22.dist-info}/METADATA +3 -2
- ultralytics_actions-0.0.22.dist-info/RECORD +15 -0
- {ultralytics_actions-0.0.15.dist-info → ultralytics_actions-0.0.22.dist-info}/WHEEL +1 -1
- ultralytics_actions-0.0.15.dist-info/RECORD +0 -15
- {ultralytics_actions-0.0.15.dist-info → ultralytics_actions-0.0.22.dist-info}/LICENSE +0 -0
- {ultralytics_actions-0.0.15.dist-info → ultralytics_actions-0.0.22.dist-info}/entry_points.txt +0 -0
- {ultralytics_actions-0.0.15.dist-info → ultralytics_actions-0.0.22.dist-info}/top_level.txt +0 -0
actions/__init__.py
CHANGED
actions/summarize_pr.py
CHANGED
@@ -42,7 +42,7 @@ def generate_pr_summary(repo_name, diff_text):
|
|
42
42
|
reply = get_completion(messages)
|
43
43
|
if len(diff_text) > limit:
|
44
44
|
reply = "**WARNING ⚠️** this PR is very large, summary may not cover all changes.\n\n" + reply
|
45
|
-
return reply
|
45
|
+
return SUMMARY_START + reply
|
46
46
|
|
47
47
|
|
48
48
|
def update_pr_description(repo_name, pr_number, new_summary, max_retries=2):
|
actions/utils/github_utils.py
CHANGED
@@ -111,6 +111,7 @@ def ultralytics_actions_info():
|
|
111
111
|
"github.ref": os.environ.get("GITHUB_REF"),
|
112
112
|
"github.head_ref": os.environ.get("GITHUB_HEAD_REF"),
|
113
113
|
"github.base_ref": os.environ.get("GITHUB_BASE_REF"),
|
114
|
+
"github.base_sha": PR.get("base", {}).get("sha"),
|
114
115
|
}
|
115
116
|
|
116
117
|
if GITHUB_EVENT_NAME == "discussion":
|
@@ -122,7 +123,7 @@ def ultralytics_actions_info():
|
|
122
123
|
)
|
123
124
|
|
124
125
|
# Print information
|
125
|
-
max_key_length = max(len(key) for key in info
|
126
|
+
max_key_length = max(len(key) for key in info)
|
126
127
|
header = f"Ultralytics Actions {__version__} Information " + "-" * 40
|
127
128
|
print(header)
|
128
129
|
for key, value in info.items():
|
actions/utils/openai_utils.py
CHANGED
@@ -9,7 +9,7 @@ import requests
|
|
9
9
|
from actions.utils.common_utils import check_links_in_string
|
10
10
|
|
11
11
|
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
|
12
|
-
OPENAI_MODEL = os.getenv("OPENAI_MODEL", "gpt-4o")
|
12
|
+
OPENAI_MODEL = os.getenv("OPENAI_MODEL", "gpt-4o-2024-11-20")
|
13
13
|
|
14
14
|
|
15
15
|
def get_completion(
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ultralytics-actions
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.22
|
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>
|
@@ -20,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.10
|
21
21
|
Classifier: Programming Language :: Python :: 3.11
|
22
22
|
Classifier: Programming Language :: Python :: 3.12
|
23
|
+
Classifier: Programming Language :: Python :: 3.13
|
23
24
|
Classifier: Topic :: Software Development
|
24
25
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
25
26
|
Classifier: Topic :: Internet :: WWW/HTTP
|
@@ -42,7 +43,7 @@ Welcome to the [Ultralytics Actions](https://github.com/ultralytics/actions) rep
|
|
42
43
|
|
43
44
|
[](https://github.com/marketplace/actions/ultralytics-actions) [](https://github.com/ultralytics/actions/actions/workflows/format.yml) <a href="https://discord.com/invite/ultralytics"><img alt="Discord" src="https://img.shields.io/discord/1089800235347353640?logo=discord&logoColor=white&label=Discord&color=blue"></a> <a href="https://community.ultralytics.com/"><img alt="Ultralytics Forums" src="https://img.shields.io/discourse/users?server=https%3A%2F%2Fcommunity.ultralytics.com&logo=discourse&label=Forums&color=blue"></a> <a href="https://reddit.com/r/ultralytics"><img alt="Ultralytics Reddit" src="https://img.shields.io/reddit/subreddit-subscribers/ultralytics?style=flat&logo=reddit&logoColor=white&label=Reddit&color=blue"></a>
|
44
45
|
|
45
|
-
[](https://badge.fury.io/py/ultralytics-actions) [](https://pepy.tech/
|
46
|
+
[](https://badge.fury.io/py/ultralytics-actions) [](https://www.pepy.tech/projects/ultralytics-actions)
|
46
47
|
|
47
48
|
## 📄 Actions Description
|
48
49
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
actions/__init__.py,sha256=JnSHwN70pB27Jr8KZHB_QHKs1uK90cF0GdUTUYDR6QM,749
|
2
|
+
actions/first_interaction.py,sha256=cLXo5hmhOgTfk7F9LbGJeRdg6vvrKUe-0taCa_TkpAg,17683
|
3
|
+
actions/summarize_pr.py,sha256=vrLg_Ddjd9WvWxHfnWn_ksexlJfWpxP020e6fFcH4ic,3968
|
4
|
+
actions/summarize_release.py,sha256=l8NBdTAXLysfNKl1Kf_1tyuBRmeEBLyzTDXS6s5_eQg,8350
|
5
|
+
actions/update_markdown_code_blocks.py,sha256=WBNcMD_KKsZS-qSPBn6O1G0ggQ_VrT-jTQffbg7xH_M,6369
|
6
|
+
actions/utils/__init__.py,sha256=0vRjFc7i2WOlphuxdUxQo5BuNipgwGw2Bs-fdUBDeUw,973
|
7
|
+
actions/utils/common_utils.py,sha256=XT8GG0SWBtlZLruA0nKrY4AJpkitvPbM8zndE8etuDo,3548
|
8
|
+
actions/utils/github_utils.py,sha256=GBMdJyfuoUnzhh5A-Wmcr-7oSEqZ4zWTAr0bV3ASt38,5539
|
9
|
+
actions/utils/openai_utils.py,sha256=O0sYtLFTPqC4inw9_NWcVNlhElcp0iJ1FvAX3L3arKo,1834
|
10
|
+
ultralytics_actions-0.0.22.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
11
|
+
ultralytics_actions-0.0.22.dist-info/METADATA,sha256=Tmom6X0IxlyeOr4Xv5jWX6cVYcAUyCfo7Uv_CNt-iao,10591
|
12
|
+
ultralytics_actions-0.0.22.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
13
|
+
ultralytics_actions-0.0.22.dist-info/entry_points.txt,sha256=GowvOFplj0C7JmsjbKcbpgLpdf2r921pcaOQkAHWZRA,378
|
14
|
+
ultralytics_actions-0.0.22.dist-info/top_level.txt,sha256=5apM5x80QlJcGbACn1v3fkmIuL1-XQCKcItJre7w7Tw,8
|
15
|
+
ultralytics_actions-0.0.22.dist-info/RECORD,,
|
@@ -1,15 +0,0 @@
|
|
1
|
-
actions/__init__.py,sha256=-twfs7j2m4ct0xLlHB60aH9eWJoaq7i25OfUkFPQ0BE,749
|
2
|
-
actions/first_interaction.py,sha256=cLXo5hmhOgTfk7F9LbGJeRdg6vvrKUe-0taCa_TkpAg,17683
|
3
|
-
actions/summarize_pr.py,sha256=mJTV0VnihAru5PZ7_9jETcDumB5HYt8yfDTZxDrx4yI,3952
|
4
|
-
actions/summarize_release.py,sha256=l8NBdTAXLysfNKl1Kf_1tyuBRmeEBLyzTDXS6s5_eQg,8350
|
5
|
-
actions/update_markdown_code_blocks.py,sha256=WBNcMD_KKsZS-qSPBn6O1G0ggQ_VrT-jTQffbg7xH_M,6369
|
6
|
-
actions/utils/__init__.py,sha256=0vRjFc7i2WOlphuxdUxQo5BuNipgwGw2Bs-fdUBDeUw,973
|
7
|
-
actions/utils/common_utils.py,sha256=XT8GG0SWBtlZLruA0nKrY4AJpkitvPbM8zndE8etuDo,3548
|
8
|
-
actions/utils/github_utils.py,sha256=dnrbU4Z4LJBIOZLCRifZqVfyiOqsJMIHBHOssj-Y2y8,5488
|
9
|
-
actions/utils/openai_utils.py,sha256=SQWOjU3hdfI_0LKb3uqM5pNsoMyE7W0hGxXy7ISk97M,1823
|
10
|
-
ultralytics_actions-0.0.15.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
11
|
-
ultralytics_actions-0.0.15.dist-info/METADATA,sha256=Fy7Pp6FSDo53-OVfvXgcNZaRqjt1IB53somkaWiuiZ0,10535
|
12
|
-
ultralytics_actions-0.0.15.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
13
|
-
ultralytics_actions-0.0.15.dist-info/entry_points.txt,sha256=GowvOFplj0C7JmsjbKcbpgLpdf2r921pcaOQkAHWZRA,378
|
14
|
-
ultralytics_actions-0.0.15.dist-info/top_level.txt,sha256=5apM5x80QlJcGbACn1v3fkmIuL1-XQCKcItJre7w7Tw,8
|
15
|
-
ultralytics_actions-0.0.15.dist-info/RECORD,,
|
File without changes
|
{ultralytics_actions-0.0.15.dist-info → ultralytics_actions-0.0.22.dist-info}/entry_points.txt
RENAMED
File without changes
|
File without changes
|