0
0
mirror of https://github.com/ihabunek/toot.git synced 2025-06-30 22:18:36 -04:00

Tweak commit message script

This commit is contained in:
Ivan Habunek 2025-03-06 10:26:51 +01:00
parent 6a444d5d09
commit f286335e48
No known key found for this signature in database
GPG Key ID: 01DB3DD0D824504C

View File

@ -12,7 +12,6 @@ import subprocess
import sys import sys
import textwrap import textwrap
import yaml import yaml
import toot
from datetime import date from datetime import date
from os import path from os import path
@ -43,8 +42,8 @@ if not isinstance(release_date, date):
commit_message = f"toot {version}\n\n" commit_message = f"toot {version}\n\n"
if description: if description:
lines = textwrap.wrap(description.strip(), 72) commit_message += textwrap.dedent(description)
commit_message += "\n".join(lines) + "\n\n" commit_message += "\n\n"
for c in changes: for c in changes:
lines = textwrap.wrap(c, 70) lines = textwrap.wrap(c, 70)