Compare commits

..

No commits in common. "4a59bc6e888d7acac7d92c478836f32134fba9fe" and "c2f3602163e9bbe860d6ecbf7543e63ed8f90240" have entirely different histories.

1 changed files with 2 additions and 2 deletions

View File

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