suite-py 1.42.0__py3-none-any.whl → 1.42.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.42.0"
2
+ __version__ = "1.42.1"
@@ -52,6 +52,7 @@ class Release:
52
52
  def _create(self):
53
53
  latest = self._version.get_latest_version()
54
54
 
55
+ commits = []
55
56
  if latest != "":
56
57
  logger.info(f"The current release is {latest}")
57
58
  commits = self._github.get_commits_since_release(self._repo, latest)
@@ -104,14 +105,15 @@ class Release:
104
105
  message = f"{latest_entry}\n\n# Commits\n\n{message}"
105
106
 
106
107
  message = common.ask_for_release_description(message)
108
+ sha = commits[0].commit.sha if len(commits) > 0 else ""
109
+ self._create_release(new_version, message, sha)
107
110
 
108
- self._create_release(new_version, message)
109
-
110
- def _create_release(self, new_version, message):
111
+ def _create_release(self, new_version, message, commit):
111
112
  new_release = self._repo.create_git_release(
112
113
  new_version,
113
114
  new_version,
114
115
  self._youtrack.replace_card_names_with_md_links(message),
116
+ target_commitish=commit,
115
117
  )
116
118
  if new_release:
117
119
  logger.info(f"The release has been created! Link: {new_release.html_url}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: suite-py
3
- Version: 1.42.0
3
+ Version: 1.42.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=hJTDtNLTlQS_WH_-iShJEn0PsoEs1NeHPvMJIjNqFfs,49
2
+ suite_py/__version__.py,sha256=2qe7wju_9Za3gMD66khHaby5fLHqRazj7tWdFCm5iWk,49
3
3
  suite_py/cli.py,sha256=nQmnOXTLoO12vyH_6d41bd7h8xElRusT_tLGNtYt-Tg,9953
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
@@ -12,7 +12,7 @@ suite_py/commands/login.py,sha256=A59e1HsbN7Ocv2L_2H0Eb7MZK7AzLkLb72QxBthnIqU,25
12
12
  suite_py/commands/merge_pr.py,sha256=fXIE8mT9MjvvpqE-uVdXGBVFGhn0eQzcBxNr-N8SyAY,5171
13
13
  suite_py/commands/open_pr.py,sha256=e6IT6f8L_HKsOEtrGHZQ2HWrFwmvIgXGNCK_TU0WE9k,7009
14
14
  suite_py/commands/project_lock.py,sha256=b7OkGysue_Sl13VIT7B5CTBppCvrB_Q6iC0IJRBSHp8,1909
15
- suite_py/commands/release.py,sha256=WOBaBGXU5bkxUV12CRGUVHBJChCt1Yo2ySA5HhCDjEY,7723
15
+ suite_py/commands/release.py,sha256=Mh6esivJ234cRE5mYWPOZSgpujO47RprySh0U_9BD9s,7857
16
16
  suite_py/commands/set_token.py,sha256=fehIqKjKhE-BJGFhgkPTo3Ntr0MvpgLd6EC5yjKuRs8,1508
17
17
  suite_py/commands/status.py,sha256=0JUK53_d1-U3WNS742JD2QTiGmCGZONo3jJx8WR7q70,1122
18
18
  suite_py/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -38,7 +38,7 @@ suite_py/lib/requests/session.py,sha256=P32H3cWnCWunu91WIj2iDM5U3HzaBglg60VN_C9J
38
38
  suite_py/lib/symbol.py,sha256=z3QYBuNIwD3qQ3zF-cLOomIr_-C3bO_u5UIDAHMiyTo,60
39
39
  suite_py/lib/tokens.py,sha256=4DbsHDFLIxs40t3mRw_ZyhmejZQ0Bht7iAL8dTCTQd4,5458
40
40
  suite_py/templates/login.html,sha256=fJLls2SB84oZTSrxTdA5q1PqfvIHcCD4fhVWfyco7Ig,861
41
- suite_py-1.42.0.dist-info/METADATA,sha256=BBTBS6aVgG6_2F3a-Rjoi0RPduumq5AN0wpn0RH3gdk,1533
42
- suite_py-1.42.0.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
43
- suite_py-1.42.0.dist-info/entry_points.txt,sha256=dVKLC-9Infy-dHJT_MkK6LcDjOgBCJ8lfPkURJhBjxE,46
44
- suite_py-1.42.0.dist-info/RECORD,,
41
+ suite_py-1.42.1.dist-info/METADATA,sha256=eotAZFpnIsQMp5sbP7CK4YwP-m5DjWrzpkDA75KdYMs,1533
42
+ suite_py-1.42.1.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
43
+ suite_py-1.42.1.dist-info/entry_points.txt,sha256=dVKLC-9Infy-dHJT_MkK6LcDjOgBCJ8lfPkURJhBjxE,46
44
+ suite_py-1.42.1.dist-info/RECORD,,