mirror of
https://github.com/ihabunek/toot.git
synced 2024-09-29 04:35:54 -04:00
Include description in tag commit message
This commit is contained in:
parent
94d7532929
commit
d1d74f47d8
@ -43,6 +43,7 @@ if dist_version != version:
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
release_date = changelog_item["date"]
|
release_date = changelog_item["date"]
|
||||||
|
description = changelog_item.get("description")
|
||||||
changes = changelog_item["changes"]
|
changes = changelog_item["changes"]
|
||||||
|
|
||||||
if not isinstance(release_date, date):
|
if not isinstance(release_date, date):
|
||||||
@ -50,6 +51,11 @@ if not isinstance(release_date, date):
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
commit_message = f"toot {version}\n\n"
|
commit_message = f"toot {version}\n\n"
|
||||||
|
|
||||||
|
if description:
|
||||||
|
lines = textwrap.wrap(description.strip(), 72)
|
||||||
|
commit_message += "\n".join(lines) + "\n\n"
|
||||||
|
|
||||||
for c in changes:
|
for c in changes:
|
||||||
lines = textwrap.wrap(c, 70)
|
lines = textwrap.wrap(c, 70)
|
||||||
initial = True
|
initial = True
|
||||||
|
Loading…
Reference in New Issue
Block a user