suite-py 1.49.0__tar.gz → 1.49.1__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 (46) hide show
  1. {suite_py-1.49.0 → suite_py-1.49.1}/PKG-INFO +1 -1
  2. {suite_py-1.49.0 → suite_py-1.49.1}/pyproject.toml +1 -1
  3. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/__version__.py +1 -1
  4. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/commands/release.py +5 -28
  5. {suite_py-1.49.0 → suite_py-1.49.1}/LICENSE-APACHE +0 -0
  6. {suite_py-1.49.0 → suite_py-1.49.1}/LICENSE-MIT +0 -0
  7. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/__init__.py +0 -0
  8. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/cli.py +0 -0
  9. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/commands/__init__.py +0 -0
  10. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/commands/ask_review.py +0 -0
  11. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/commands/bump.py +0 -0
  12. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/commands/check.py +0 -0
  13. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/commands/common.py +0 -0
  14. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/commands/context.py +0 -0
  15. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/commands/create_branch.py +0 -0
  16. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/commands/estimate_cone.py +0 -0
  17. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/commands/login.py +0 -0
  18. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/commands/merge_pr.py +0 -0
  19. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/commands/open_pr.py +0 -0
  20. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/commands/project_lock.py +0 -0
  21. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/commands/set_token.py +0 -0
  22. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/commands/status.py +0 -0
  23. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/__init__.py +0 -0
  24. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/config.py +0 -0
  25. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/handler/__init__.py +0 -0
  26. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/handler/aws_handler.py +0 -0
  27. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/handler/captainhook_handler.py +0 -0
  28. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/handler/changelog_handler.py +0 -0
  29. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/handler/frequent_reviewers_handler.py +0 -0
  30. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/handler/git_handler.py +0 -0
  31. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/handler/github_handler.py +0 -0
  32. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/handler/metrics_handler.py +0 -0
  33. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/handler/okta_handler.py +0 -0
  34. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/handler/pre_commit_handler.py +0 -0
  35. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/handler/prompt_utils.py +0 -0
  36. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/handler/version_handler.py +0 -0
  37. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/handler/youtrack_handler.py +0 -0
  38. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/logger.py +0 -0
  39. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/metrics.py +0 -0
  40. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/oauth.py +0 -0
  41. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/requests/__init__.py +0 -0
  42. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/requests/auth.py +0 -0
  43. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/requests/session.py +0 -0
  44. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/symbol.py +0 -0
  45. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/lib/tokens.py +0 -0
  46. {suite_py-1.49.0 → suite_py-1.49.1}/suite_py/templates/login.html +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: suite-py
3
- Version: 1.49.0
3
+ Version: 1.49.1
4
4
  Summary:
5
5
  Author: larrywax, EugenioLaghi, michelangelomo
6
6
  Author-email: devops@prima.it
@@ -2,7 +2,7 @@
2
2
  authors = ["larrywax, EugenioLaghi, michelangelomo <devops@prima.it>"]
3
3
  description = ""
4
4
  name = "suite-py"
5
- version = "1.49.0"
5
+ version = "1.49.1"
6
6
 
7
7
  [tool.poetry.dependencies]
8
8
  Click = ">=7.0"
@@ -1,2 +1,2 @@
1
1
  # -*- encoding: utf-8 -*-
2
- __version__ = "1.49.0"
2
+ __version__ = "1.49.1"
@@ -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
- state = self._classify_from_check_runs(check_runs) if check_runs else None
194
- if state is None:
195
- state = self._classify_from_combined_status(sha)
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 = {
File without changes
File without changes
File without changes