Compare commits

...

2 Commits

Author SHA1 Message Date
iratusmachina 4a59bc6e88 Merge pull request 'Refactoring draft notes generation' (#4) from feature/fix-notes into main
Reviewed-on: #4
2024-04-20 15:29:48 +00:00
iratusmachina 6bb0da8f79 Refactoring draft notes generation
ci/woodpecker/pr/pr/1 Pipeline was successful Details
ci/woodpecker/pr/pr/2 Pipeline was successful Details
2024-04-20 11:25:23 -04:00
1 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ def draft():
# Get the current and previous tags
tags = subprocess.check_output(["git", "tag", "--sort=creatordate"], text=True)
if tags:
tags = [tag for tag in tags.split("\n") if tag]
tags = [tag for tag in tags.split("\n") if tag]
if len(tags) > 1:
tags.reverse()
current_tag, previous_tag, *_ = tags
formatted_lines = subprocess.check_output(["git", "log", f"{current_tag}...{previous_tag}", f'--pretty=format:"* %s"'], text=True)