suite-py 1.46.0__py3-none-any.whl → 1.47.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 CHANGED
@@ -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
suite_py/lib/logger.py CHANGED
@@ -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)
@@ -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
@@ -1,5 +1,5 @@
1
1
  suite_py/__init__.py,sha256=REmi3D0X2G1ZWnYpKs8Ffm3NIj-Hw6dMuvz2b9NW344,142
2
- suite_py/__version__.py,sha256=y_irmWufF1id-FK0jAuz962BX7uXinVOrDlZ-WZGMts,49
2
+ suite_py/__version__.py,sha256=cKvpK8UUahCMZ1joS87DCaUD5LYTrc2oLgpeZj9IiiQ,49
3
3
  suite_py/cli.py,sha256=hBbNXb9vVk8lSJXRrb1GctTp3EUjMYFWS9mn_HaNG9I,11155
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
@@ -11,7 +11,7 @@ suite_py/commands/create_branch.py,sha256=6sveTtOg_0lQl-MYizcnnyYyAunA_dXunQAxv7
11
11
  suite_py/commands/estimate_cone.py,sha256=_RekBWzPlzInlZRpSIeKUVkx-A8Phx0IEYVouTbN7z4,3411
12
12
  suite_py/commands/login.py,sha256=A59e1HsbN7Ocv2L_2H0Eb7MZK7AzLkLb72QxBthnIqU,258
13
13
  suite_py/commands/merge_pr.py,sha256=fXIE8mT9MjvvpqE-uVdXGBVFGhn0eQzcBxNr-N8SyAY,5171
14
- suite_py/commands/open_pr.py,sha256=e6IT6f8L_HKsOEtrGHZQ2HWrFwmvIgXGNCK_TU0WE9k,7009
14
+ suite_py/commands/open_pr.py,sha256=djaF2OsYbQo0YLTEbNRTYYFzsNT0sl7VRxqtxSX1PKc,7150
15
15
  suite_py/commands/project_lock.py,sha256=b7OkGysue_Sl13VIT7B5CTBppCvrB_Q6iC0IJRBSHp8,1909
16
16
  suite_py/commands/release.py,sha256=u6pdT1Vk9qBLnfgxcWtpk_KV-hh_NL9yHfFQz6ZcbUs,7909
17
17
  suite_py/commands/set_token.py,sha256=fehIqKjKhE-BJGFhgkPTo3Ntr0MvpgLd6EC5yjKuRs8,1508
@@ -31,7 +31,7 @@ suite_py/lib/handler/pre_commit_handler.py,sha256=nwqVgC-KnUjn7NVIHZ0VmDdUfp6Q1i
31
31
  suite_py/lib/handler/prompt_utils.py,sha256=vgk1O7h-iYEAZv1sXtMh8xIgH1djI398rzxRIgZWZcg,2474
32
32
  suite_py/lib/handler/version_handler.py,sha256=DXTx4yCAbFVC6CdMqPJ-LiN5YM-dT2zklG8POyKTP5A,6774
33
33
  suite_py/lib/handler/youtrack_handler.py,sha256=_CwzeFhj7kMYb61CN8IYF0IE55Zrj6vZT38SUZLA5B8,10192
34
- suite_py/lib/logger.py,sha256=aL870R69enNL9K8mQrMFgSAVUPXXgkvaVp6xTprCBWA,1029
34
+ suite_py/lib/logger.py,sha256=SsJ1MpA3Kkt_4VTscfmsnlYZRZdzWwkxfWfVWVgsADI,1181
35
35
  suite_py/lib/metrics.py,sha256=urTBVzIc1Ys6OHPOO32fLPPRcQU45tzM3XMJ7mUl5dc,1629
36
36
  suite_py/lib/oauth.py,sha256=tE3MgCnYhW6ZIbkyeUohFTOUvnBsrJXfHN8XsAVQNXk,5077
37
37
  suite_py/lib/requests/__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.46.0.dist-info/METADATA,sha256=xKqjzEcrChO20inY1mhWsY49b3tJVhvdE8HchWfwPJ4,1250
44
- suite_py-1.46.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
45
- suite_py-1.46.0.dist-info/entry_points.txt,sha256=dVKLC-9Infy-dHJT_MkK6LcDjOgBCJ8lfPkURJhBjxE,46
46
- suite_py-1.46.0.dist-info/RECORD,,
43
+ suite_py-1.47.1.dist-info/METADATA,sha256=wC0GWaZMoj1UKf0XQ_X9I4EfvqRz0ODqXJn3xE_1WQg,1250
44
+ suite_py-1.47.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
45
+ suite_py-1.47.1.dist-info/entry_points.txt,sha256=dVKLC-9Infy-dHJT_MkK6LcDjOgBCJ8lfPkURJhBjxE,46
46
+ suite_py-1.47.1.dist-info/RECORD,,