gha-utils 4.15.1__py3-none-any.whl → 4.15.2__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 +1 -1
- gha_utils/metadata.py +8 -1
- {gha_utils-4.15.1.dist-info → gha_utils-4.15.2.dist-info}/METADATA +1 -1
- {gha_utils-4.15.1.dist-info → gha_utils-4.15.2.dist-info}/RECORD +7 -7
- {gha_utils-4.15.1.dist-info → gha_utils-4.15.2.dist-info}/WHEEL +0 -0
- {gha_utils-4.15.1.dist-info → gha_utils-4.15.2.dist-info}/entry_points.txt +0 -0
- {gha_utils-4.15.1.dist-info → gha_utils-4.15.2.dist-info}/top_level.txt +0 -0
gha_utils/__init__.py
CHANGED
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
|
-
|
|
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,14 +1,14 @@
|
|
|
1
|
-
gha_utils/__init__.py,sha256=
|
|
1
|
+
gha_utils/__init__.py,sha256=yW4QChPrrhi_lSm1NQ0sz_C-Pvhe2Sd81eac3s0eSFs,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=
|
|
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.
|
|
11
|
-
gha_utils-4.15.
|
|
12
|
-
gha_utils-4.15.
|
|
13
|
-
gha_utils-4.15.
|
|
14
|
-
gha_utils-4.15.
|
|
10
|
+
gha_utils-4.15.2.dist-info/METADATA,sha256=IdwDDZPFOeJdR3ZdOpykMNHF5pJWr6qRHaDzdM5SECQ,20372
|
|
11
|
+
gha_utils-4.15.2.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
|
12
|
+
gha_utils-4.15.2.dist-info/entry_points.txt,sha256=8bJOwQYf9ZqsLhBR6gUCzvwLNI9f8tiiBrJ3AR0EK4o,54
|
|
13
|
+
gha_utils-4.15.2.dist-info/top_level.txt,sha256=C94Blb61YkkyPBwCdM3J_JPDjWH0lnKa5nGZeZ5M6yE,10
|
|
14
|
+
gha_utils-4.15.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|