Skip to content

Commit

Permalink
Tweak commit message script
Browse files Browse the repository at this point in the history
  • Loading branch information
ihabunek committed Mar 6, 2025
1 parent 6a444d5 commit f286335
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/tag_version
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import subprocess
import sys
import textwrap
import yaml
import toot

from datetime import date
from os import path
Expand Down Expand Up @@ -43,8 +42,8 @@ if not isinstance(release_date, date):
commit_message = f"toot {version}\n\n"

if description:
lines = textwrap.wrap(description.strip(), 72)
commit_message += "\n".join(lines) + "\n\n"
commit_message += textwrap.dedent(description)
commit_message += "\n\n"

for c in changes:
lines = textwrap.wrap(c, 70)
Expand Down

0 comments on commit f286335

Please sign in to comment.