suite-py 1.46.0__tar.gz → 1.47.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.46.0 → suite_py-1.47.1}/PKG-INFO +1 -1
  2. {suite_py-1.46.0 → suite_py-1.47.1}/pyproject.toml +1 -1
  3. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/__version__.py +1 -1
  4. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/commands/open_pr.py +9 -6
  5. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/logger.py +9 -1
  6. {suite_py-1.46.0 → suite_py-1.47.1}/LICENSE-APACHE +0 -0
  7. {suite_py-1.46.0 → suite_py-1.47.1}/LICENSE-MIT +0 -0
  8. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/__init__.py +0 -0
  9. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/cli.py +0 -0
  10. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/commands/__init__.py +0 -0
  11. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/commands/ask_review.py +0 -0
  12. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/commands/bump.py +0 -0
  13. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/commands/check.py +0 -0
  14. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/commands/common.py +0 -0
  15. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/commands/context.py +0 -0
  16. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/commands/create_branch.py +0 -0
  17. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/commands/estimate_cone.py +0 -0
  18. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/commands/login.py +0 -0
  19. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/commands/merge_pr.py +0 -0
  20. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/commands/project_lock.py +0 -0
  21. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/commands/release.py +0 -0
  22. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/commands/set_token.py +0 -0
  23. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/commands/status.py +0 -0
  24. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/__init__.py +0 -0
  25. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/config.py +0 -0
  26. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/handler/__init__.py +0 -0
  27. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/handler/aws_handler.py +0 -0
  28. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/handler/captainhook_handler.py +0 -0
  29. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/handler/changelog_handler.py +0 -0
  30. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/handler/frequent_reviewers_handler.py +0 -0
  31. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/handler/git_handler.py +0 -0
  32. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/handler/github_handler.py +0 -0
  33. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/handler/metrics_handler.py +0 -0
  34. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/handler/okta_handler.py +0 -0
  35. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/handler/pre_commit_handler.py +0 -0
  36. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/handler/prompt_utils.py +0 -0
  37. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/handler/version_handler.py +0 -0
  38. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/handler/youtrack_handler.py +0 -0
  39. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/metrics.py +0 -0
  40. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/oauth.py +0 -0
  41. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/requests/__init__.py +0 -0
  42. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/requests/auth.py +0 -0
  43. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/requests/session.py +0 -0
  44. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/symbol.py +0 -0
  45. {suite_py-1.46.0 → suite_py-1.47.1}/suite_py/lib/tokens.py +0 -0
  46. {suite_py-1.46.0 → suite_py-1.47.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.46.0
3
+ Version: 1.47.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.46.0"
5
+ version = "1.47.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.46.0"
2
+ __version__ = "1.47.1"
@@ -74,9 +74,10 @@ class OpenPR:
74
74
  f"Creating pull request on the {self._project} project for the {self._branch_name} branch linked with the {youtrack_id} card"
75
75
  )
76
76
  link = self._youtrack.get_link(youtrack_id)
77
- title = (
78
- f"[{youtrack_id}]: {self._youtrack.get_issue(youtrack_id)['summary']}"
79
- )
77
+
78
+ default_title = self._youtrack.get_issue(youtrack_id)["summary"]
79
+ title_without_prefix = _ask_for_title(default_title)
80
+ title = f"[{youtrack_id}]: {title_without_prefix}"
80
81
  else:
81
82
  logger.warning(
82
83
  f"Creating pull request on the {self._project} project for the {self._branch_name} branch NOT linked to YouTrack card"
@@ -173,9 +174,11 @@ class OpenPR:
173
174
  return description
174
175
 
175
176
 
176
- def _ask_for_title():
177
- title = prompt_utils.ask_questions_input("Enter the title of the pull request: ")
177
+ def _ask_for_title(default_title=""):
178
+ title = prompt_utils.ask_questions_input(
179
+ "Enter the title of the pull request: ", default_title
180
+ )
178
181
  if title == "":
179
182
  logger.warning("The title of the pull request cannot be empty")
180
- return _ask_for_title()
183
+ return _ask_for_title(default_title)
181
184
  return title
@@ -17,7 +17,15 @@ def setup(verbose):
17
17
  level=level,
18
18
  format=LOG_FORMAT,
19
19
  datefmt="[%X]",
20
- handlers=[RichHandler(rich_tracebacks=True, markup=False, show_path=False)],
20
+ handlers=[
21
+ RichHandler(
22
+ rich_tracebacks=True,
23
+ markup=False,
24
+ show_path=False,
25
+ show_level=False,
26
+ show_time=False,
27
+ )
28
+ ],
21
29
  )
22
30
 
23
31
  logger = logging.getLogger(LOGGER_NAME)
File without changes
File without changes
File without changes