suite-py 1.49.0__py3-none-any.whl → 1.49.1__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.
- suite_py/__version__.py +1 -1
- suite_py/commands/release.py +5 -28
- {suite_py-1.49.0.dist-info → suite_py-1.49.1.dist-info}/METADATA +1 -1
- {suite_py-1.49.0.dist-info → suite_py-1.49.1.dist-info}/RECORD +6 -6
- {suite_py-1.49.0.dist-info → suite_py-1.49.1.dist-info}/WHEEL +0 -0
- {suite_py-1.49.0.dist-info → suite_py-1.49.1.dist-info}/entry_points.txt +0 -0
suite_py/__version__.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
__version__ = "1.49.
|
|
2
|
+
__version__ = "1.49.1"
|
suite_py/commands/release.py
CHANGED
|
@@ -149,8 +149,9 @@ class Release:
|
|
|
149
149
|
|
|
150
150
|
def build_choice(c, icon):
|
|
151
151
|
summary = c.commit.message.splitlines()[0]
|
|
152
|
+
author = c.commit.author.name
|
|
152
153
|
return {
|
|
153
|
-
"name": f"{icon} {c.sha[:8]} | {summary}",
|
|
154
|
+
"name": f"{icon} {c.sha[:8]} | {summary} by {author}",
|
|
154
155
|
"value": c.sha,
|
|
155
156
|
}
|
|
156
157
|
|
|
@@ -180,19 +181,11 @@ class Release:
|
|
|
180
181
|
|
|
181
182
|
Final exposed statuses (icons):
|
|
182
183
|
success (✅), failure (❌), in_progress (🏗️), cancelled (🚫), unknown (❓)
|
|
183
|
-
|
|
184
|
-
Everything else is folded into one of those buckets:
|
|
185
|
-
pending / queued / waiting -> in_progress
|
|
186
|
-
skipped / neutral -> unknown (unless at least one success present)
|
|
187
|
-
Preference order for determining state:
|
|
188
|
-
1. Check runs API
|
|
189
|
-
2. Combined status API
|
|
190
|
-
3. Fallback unknown
|
|
191
184
|
"""
|
|
192
185
|
check_runs = self._safe_get_check_runs(sha)
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
186
|
+
if not check_runs:
|
|
187
|
+
return self._icon_for_state("unknown")
|
|
188
|
+
state = self._classify_from_check_runs(check_runs)
|
|
196
189
|
return self._icon_for_state(state)
|
|
197
190
|
|
|
198
191
|
def _safe_get_check_runs(self, sha):
|
|
@@ -238,22 +231,6 @@ class Release:
|
|
|
238
231
|
or ("success" in conclusions and not Release._any_failure(conclusions))
|
|
239
232
|
)
|
|
240
233
|
|
|
241
|
-
def _classify_from_combined_status(self, sha):
|
|
242
|
-
try:
|
|
243
|
-
status = self._github.get_build_status(self._project, sha)
|
|
244
|
-
combined = (status.state or "unknown").lower()
|
|
245
|
-
except Exception:
|
|
246
|
-
combined = "unknown"
|
|
247
|
-
if combined in {"pending", "queued", "waiting", "in_progress"}:
|
|
248
|
-
return "in_progress"
|
|
249
|
-
if combined == "success":
|
|
250
|
-
return "success"
|
|
251
|
-
if combined == "failure":
|
|
252
|
-
return "failure"
|
|
253
|
-
if combined == "cancelled":
|
|
254
|
-
return "cancelled"
|
|
255
|
-
return "unknown"
|
|
256
|
-
|
|
257
234
|
@staticmethod
|
|
258
235
|
def _icon_for_state(state):
|
|
259
236
|
icon_mapping = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
suite_py/__init__.py,sha256=REmi3D0X2G1ZWnYpKs8Ffm3NIj-Hw6dMuvz2b9NW344,142
|
|
2
|
-
suite_py/__version__.py,sha256=
|
|
2
|
+
suite_py/__version__.py,sha256=VeDjrisUW4YqNSxqHjb9wWGHToZW1js3I9jRqyYdTYI,49
|
|
3
3
|
suite_py/cli.py,sha256=IV73nNqBwLKLAfucLxyIne_V7uBQT6OBY3Z2VryQt2M,12582
|
|
4
4
|
suite_py/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
suite_py/commands/ask_review.py,sha256=yN__Ac-fiZBPShjRDhyCCQZGfVlQE16KozoJk4UtiNw,3788
|
|
@@ -13,7 +13,7 @@ suite_py/commands/login.py,sha256=A59e1HsbN7Ocv2L_2H0Eb7MZK7AzLkLb72QxBthnIqU,25
|
|
|
13
13
|
suite_py/commands/merge_pr.py,sha256=fXIE8mT9MjvvpqE-uVdXGBVFGhn0eQzcBxNr-N8SyAY,5171
|
|
14
14
|
suite_py/commands/open_pr.py,sha256=djaF2OsYbQo0YLTEbNRTYYFzsNT0sl7VRxqtxSX1PKc,7150
|
|
15
15
|
suite_py/commands/project_lock.py,sha256=b7OkGysue_Sl13VIT7B5CTBppCvrB_Q6iC0IJRBSHp8,1909
|
|
16
|
-
suite_py/commands/release.py,sha256=
|
|
16
|
+
suite_py/commands/release.py,sha256=eg9RoCBj5NVfaxQW7eHF4TvPj_eherJ-ovokU7Pt4k0,14659
|
|
17
17
|
suite_py/commands/set_token.py,sha256=fehIqKjKhE-BJGFhgkPTo3Ntr0MvpgLd6EC5yjKuRs8,1508
|
|
18
18
|
suite_py/commands/status.py,sha256=0JUK53_d1-U3WNS742JD2QTiGmCGZONo3jJx8WR7q70,1122
|
|
19
19
|
suite_py/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -40,7 +40,7 @@ suite_py/lib/requests/session.py,sha256=P32H3cWnCWunu91WIj2iDM5U3HzaBglg60VN_C9J
|
|
|
40
40
|
suite_py/lib/symbol.py,sha256=z3QYBuNIwD3qQ3zF-cLOomIr_-C3bO_u5UIDAHMiyTo,60
|
|
41
41
|
suite_py/lib/tokens.py,sha256=4DbsHDFLIxs40t3mRw_ZyhmejZQ0Bht7iAL8dTCTQd4,5458
|
|
42
42
|
suite_py/templates/login.html,sha256=fJLls2SB84oZTSrxTdA5q1PqfvIHcCD4fhVWfyco7Ig,861
|
|
43
|
-
suite_py-1.49.
|
|
44
|
-
suite_py-1.49.
|
|
45
|
-
suite_py-1.49.
|
|
46
|
-
suite_py-1.49.
|
|
43
|
+
suite_py-1.49.1.dist-info/METADATA,sha256=9VplRO35M4_maBHOmHZCRRNR4Us5JQOWLidhFq9jvZY,1250
|
|
44
|
+
suite_py-1.49.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
45
|
+
suite_py-1.49.1.dist-info/entry_points.txt,sha256=dVKLC-9Infy-dHJT_MkK6LcDjOgBCJ8lfPkURJhBjxE,46
|
|
46
|
+
suite_py-1.49.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|