ultralytics-actions 0.0.71__py3-none-any.whl → 0.0.72__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/first_interaction.py +1 -2
- actions/utils/github_utils.py +5 -5
- actions/utils/openai_utils.py +1 -1
- {ultralytics_actions-0.0.71.dist-info → ultralytics_actions-0.0.72.dist-info}/METADATA +1 -1
- ultralytics_actions-0.0.72.dist-info/RECORD +16 -0
- {ultralytics_actions-0.0.71.dist-info → ultralytics_actions-0.0.72.dist-info}/WHEEL +1 -1
- ultralytics_actions-0.0.71.dist-info/RECORD +0 -16
- {ultralytics_actions-0.0.71.dist-info → ultralytics_actions-0.0.72.dist-info}/entry_points.txt +0 -0
- {ultralytics_actions-0.0.71.dist-info → ultralytics_actions-0.0.72.dist-info}/licenses/LICENSE +0 -0
- {ultralytics_actions-0.0.71.dist-info → ultralytics_actions-0.0.72.dist-info}/top_level.txt +0 -0
actions/__init__.py
CHANGED
actions/first_interaction.py
CHANGED
@@ -249,8 +249,7 @@ mutation($discussionId: ID!, $body: String!) {
|
|
249
249
|
"""
|
250
250
|
event.graphql_request(mutation, variables={"discussionId": node_id, "body": comment})
|
251
251
|
else:
|
252
|
-
|
253
|
-
event.post(url, json={"body": comment}, headers=event.headers)
|
252
|
+
event.post(f"{GITHUB_API_URL}/repos/{event.repository}/issues/{number}/comments", json={"body": comment})
|
254
253
|
|
255
254
|
|
256
255
|
def get_first_interaction_response(event, issue_type: str, title: str, body: str, username: str) -> str:
|
actions/utils/github_utils.py
CHANGED
@@ -41,7 +41,7 @@ class Action:
|
|
41
41
|
self.eyes_reaction_id = None
|
42
42
|
self.verbose = verbose
|
43
43
|
|
44
|
-
def _request(self, method: str, url: str, headers=None, expected_status=None, **kwargs):
|
44
|
+
def _request(self, method: str, url: str, headers=None, expected_status=None, hard=False, **kwargs):
|
45
45
|
"""Unified request handler with error checking."""
|
46
46
|
headers = headers or self.headers
|
47
47
|
expected_status = expected_status or self._default_status[method.lower()]
|
@@ -55,11 +55,11 @@ class Action:
|
|
55
55
|
if not success:
|
56
56
|
try:
|
57
57
|
error_detail = response.json()
|
58
|
-
print(f" Error: {error_detail.get('message', 'Unknown error')}")
|
59
|
-
except:
|
60
|
-
print(f" Error: {response.text[:100]}...")
|
58
|
+
print(f" ❌ Error: {error_detail.get('message', 'Unknown error')}")
|
59
|
+
except Exception as e:
|
60
|
+
print(f" ❌ Error: {response.text[:100]}... {e}")
|
61
61
|
|
62
|
-
if not success:
|
62
|
+
if not success and hard:
|
63
63
|
response.raise_for_status()
|
64
64
|
|
65
65
|
return response
|
actions/utils/openai_utils.py
CHANGED
@@ -50,7 +50,7 @@ def get_completion(
|
|
50
50
|
"temperature": temperature,
|
51
51
|
}
|
52
52
|
|
53
|
-
r = requests.post(url,
|
53
|
+
r = requests.post(url, json=data, headers=headers)
|
54
54
|
r.raise_for_status()
|
55
55
|
content = r.json()["choices"][0]["message"]["content"].strip()
|
56
56
|
content = remove_outer_codeblocks(content)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ultralytics-actions
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.72
|
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>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
actions/__init__.py,sha256=LrpYn1V-7q-pK5RFk6pDDykC5mStVphcFGlHXE7ohU8,742
|
2
|
+
actions/dispatch_actions.py,sha256=vbA4w_B8vMXMen__ck2WoDsUFCELjXOQbpLzZCmqTXg,4240
|
3
|
+
actions/first_interaction.py,sha256=whphdBrWkcWRt6RgOeK2dUoGq3aBTqttQdokxVjkye4,16309
|
4
|
+
actions/summarize_pr.py,sha256=NCaDSbw4PVoRbPJzji_Ua2HadI2pn7QOE_dy3VK9_cc,10463
|
5
|
+
actions/summarize_release.py,sha256=OncODHx7XsmB-nPf-B1tnxUTcaJx6hM4JAMa9frypzM,7922
|
6
|
+
actions/update_markdown_code_blocks.py,sha256=9PL7YIQfApRNAa0que2hYHv7umGZTZoHlblesB0xFj4,8587
|
7
|
+
actions/utils/__init__.py,sha256=TXYvhFgDeAnosePM4jfOrEd6PlC7tWC-WMOgCB_T6Tw,728
|
8
|
+
actions/utils/common_utils.py,sha256=2eNwGJFigl9bBXcyWzdr8mr97Lrx7zFKWIFYugZcUJw,11736
|
9
|
+
actions/utils/github_utils.py,sha256=FpN0PvEhWGRSC6L-zPhtnK7K6laiGviy_bVUY_ofNo0,9833
|
10
|
+
actions/utils/openai_utils.py,sha256=09kW4K2LOc6KsWz5tijf2Piinhu3PIKPDVkRC3KyIxU,2943
|
11
|
+
ultralytics_actions-0.0.72.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
12
|
+
ultralytics_actions-0.0.72.dist-info/METADATA,sha256=3xSSsI9xWR5RNStm03fG5p-sELTyGHNB-g21iBdFVNs,10930
|
13
|
+
ultralytics_actions-0.0.72.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
|
14
|
+
ultralytics_actions-0.0.72.dist-info/entry_points.txt,sha256=GowvOFplj0C7JmsjbKcbpgLpdf2r921pcaOQkAHWZRA,378
|
15
|
+
ultralytics_actions-0.0.72.dist-info/top_level.txt,sha256=5apM5x80QlJcGbACn1v3fkmIuL1-XQCKcItJre7w7Tw,8
|
16
|
+
ultralytics_actions-0.0.72.dist-info/RECORD,,
|
@@ -1,16 +0,0 @@
|
|
1
|
-
actions/__init__.py,sha256=KuXt92GxOFYtPimGijr5CdEXsLmxIG4MQWAaAgFd3ew,742
|
2
|
-
actions/dispatch_actions.py,sha256=vbA4w_B8vMXMen__ck2WoDsUFCELjXOQbpLzZCmqTXg,4240
|
3
|
-
actions/first_interaction.py,sha256=Yagh38abX638DNYr18HoiEEfCZOJfrqObhJIff54Sx0,16350
|
4
|
-
actions/summarize_pr.py,sha256=NCaDSbw4PVoRbPJzji_Ua2HadI2pn7QOE_dy3VK9_cc,10463
|
5
|
-
actions/summarize_release.py,sha256=OncODHx7XsmB-nPf-B1tnxUTcaJx6hM4JAMa9frypzM,7922
|
6
|
-
actions/update_markdown_code_blocks.py,sha256=9PL7YIQfApRNAa0que2hYHv7umGZTZoHlblesB0xFj4,8587
|
7
|
-
actions/utils/__init__.py,sha256=TXYvhFgDeAnosePM4jfOrEd6PlC7tWC-WMOgCB_T6Tw,728
|
8
|
-
actions/utils/common_utils.py,sha256=2eNwGJFigl9bBXcyWzdr8mr97Lrx7zFKWIFYugZcUJw,11736
|
9
|
-
actions/utils/github_utils.py,sha256=bpFMbpzPvtBiqtNvzISFkCp8_7EboMiD3aMA8RG_tTs,9785
|
10
|
-
actions/utils/openai_utils.py,sha256=txbsEPQnIOieejatBuE6Yk7xR1fQ0erWOEs6cYgUQX4,2943
|
11
|
-
ultralytics_actions-0.0.71.dist-info/licenses/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
|
12
|
-
ultralytics_actions-0.0.71.dist-info/METADATA,sha256=Q0n2vt5uFAB2167ciNanCwJk86uLv_6sry9l8mKgvNU,10930
|
13
|
-
ultralytics_actions-0.0.71.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
|
14
|
-
ultralytics_actions-0.0.71.dist-info/entry_points.txt,sha256=GowvOFplj0C7JmsjbKcbpgLpdf2r921pcaOQkAHWZRA,378
|
15
|
-
ultralytics_actions-0.0.71.dist-info/top_level.txt,sha256=5apM5x80QlJcGbACn1v3fkmIuL1-XQCKcItJre7w7Tw,8
|
16
|
-
ultralytics_actions-0.0.71.dist-info/RECORD,,
|
{ultralytics_actions-0.0.71.dist-info → ultralytics_actions-0.0.72.dist-info}/entry_points.txt
RENAMED
File without changes
|
{ultralytics_actions-0.0.71.dist-info → ultralytics_actions-0.0.72.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|