Skip to content

Commit

Permalink
Merge pull request #46 from wemogy/main
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
SebastianKuesters authored Mar 22, 2024
2 parents a65bccd + 19508e2 commit ca0f65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def get_current_version_tag(repo: git.Repo, prefix: str) -> git.TagReference | N
If there are no tags, return None.
"""
# Reverse the list of tags to start with the most recent one
for tag in reversed(repo.tags):
for tag in sorted(repo.tags, key=lambda t: t.commit.committed_datetime, reverse=True):
# Check if the tag name starts with the specified prefix
if tag.name.startswith(prefix):
logger.debug('Found tag %s (%s)', tag.name, tag.commit.hexsha)
Expand Down

0 comments on commit ca0f65f

Please sign in to comment.