gha-utils 4.15.1__py3-none-any.whl → 4.15.3__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.

Potentially problematic release.


This version of gha-utils might be problematic. Click here for more details.

gha_utils/__init__.py CHANGED
@@ -17,4 +17,4 @@
17
17
 
18
18
  from __future__ import annotations
19
19
 
20
- __version__ = "4.15.1"
20
+ __version__ = "4.15.3"
gha_utils/metadata.py CHANGED
@@ -796,13 +796,20 @@ class Metadata:
796
796
  def current_version(self) -> str | None:
797
797
  """Returns the current version.
798
798
 
799
- I.e. the version of the most recent commit.
799
+ Current version is fetched from the ``bump-my-version`` configuration file.
800
+
801
+ During a release we get two commits bundled into a single event. The first one
802
+ is the release commit itself freezing the version to the release number. The
803
+ second one is the commit that bumps the version to the next one. In this situation,
804
+ the current version returned is the one from the most recent commit.
800
805
  """
801
806
  version = None
802
807
  if self.new_commits_matrix:
803
808
  details = self.new_commits_matrix.get("include")
804
809
  if details:
805
810
  version = details[0].get("current_version")
811
+ else:
812
+ version = self.get_current_version()
806
813
  return version
807
814
 
808
815
  @cached_property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: gha-utils
3
- Version: 4.15.1
3
+ Version: 4.15.3
4
4
  Summary: ⚙️ CLI helpers for GitHub Actions + reuseable workflows
5
5
  Author-email: Kevin Deldycke <kevin@deldycke.com>
6
6
  Project-URL: Homepage, https://github.com/kdeldycke/workflows
@@ -1,14 +1,14 @@
1
- gha_utils/__init__.py,sha256=U6S-lf9LBMc4aLqIpN6_b_EWdcO7WqZcG6kCvWeyioI,866
1
+ gha_utils/__init__.py,sha256=mex4VK22UE13Gos5slkdhM8aESOt_soxyHxMjnLOhiQ,866
2
2
  gha_utils/__main__.py,sha256=Dck9BjpLXmIRS83k0mghAMcYVYiMiFLltQdfRuMSP_Q,1703
3
3
  gha_utils/changelog.py,sha256=JR7iQrWjLoIOpVNe6iXQSyEii82_hM_zrYpR7QO_Uxo,5777
4
4
  gha_utils/cli.py,sha256=rE9sjDj4iFqzyj8PwwSt8JkDSgULltm9qvUgXOqGtT4,12858
5
5
  gha_utils/mailmap.py,sha256=naUqJYJnE3fLTjju1nd6WMm7ODiSaI2SHuJxRtmaFWs,6269
6
6
  gha_utils/matrix.py,sha256=_afJD0K-xZLNxwykVnUhD0Gj9cdO0Z43g3VHa-q_tkI,11941
7
- gha_utils/metadata.py,sha256=AbiEdWjcJfUaVwlhV31J-HXJldZgFB0OKS2fHJ60FXU,48282
7
+ gha_utils/metadata.py,sha256=6E1LZGrqFg2gEYC_8hGlGCbrUj4VKph3KpNdvigmRQ0,48719
8
8
  gha_utils/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  gha_utils/test_plan.py,sha256=57qwIaYfOLbyVKA5X4wldAKePxfvclK7lut--If2fSA,13149
10
- gha_utils-4.15.1.dist-info/METADATA,sha256=6qHGLG5o_rE-wJgiPiBvlCdmFgzqR68UrByB2cjOnVk,20372
11
- gha_utils-4.15.1.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
12
- gha_utils-4.15.1.dist-info/entry_points.txt,sha256=8bJOwQYf9ZqsLhBR6gUCzvwLNI9f8tiiBrJ3AR0EK4o,54
13
- gha_utils-4.15.1.dist-info/top_level.txt,sha256=C94Blb61YkkyPBwCdM3J_JPDjWH0lnKa5nGZeZ5M6yE,10
14
- gha_utils-4.15.1.dist-info/RECORD,,
10
+ gha_utils-4.15.3.dist-info/METADATA,sha256=w1L0yQDI8BMqZUIL5GbW7gMMFi5OvcW9tVTutF4AjS8,20372
11
+ gha_utils-4.15.3.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
12
+ gha_utils-4.15.3.dist-info/entry_points.txt,sha256=8bJOwQYf9ZqsLhBR6gUCzvwLNI9f8tiiBrJ3AR0EK4o,54
13
+ gha_utils-4.15.3.dist-info/top_level.txt,sha256=C94Blb61YkkyPBwCdM3J_JPDjWH0lnKa5nGZeZ5M6yE,10
14
+ gha_utils-4.15.3.dist-info/RECORD,,