Skip to content

Commit 75a4bc4

Browse files
authored
[misc] automatically strip periods when generating changelog entries (#18598)
Manually removing the periods caused a small amount of busy work in the 1.15 release. It's easy enough to tweak the script, so I went ahead and added a `removesuffix` call.
1 parent 6f32ef9 commit 75a4bc4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

misc/generate_changelog.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ def format_changelog_entry(c: CommitInfo) -> str:
145145
s += f" (#{c.pr_number})"
146146
s += f" ({c.author})"
147147
"""
148-
s = f" * {c.title} ({c.author}"
148+
title = c.title.removesuffix(".")
149+
s = f" * {title} ({c.author}"
149150
if c.pr_number:
150151
s += f", PR [{c.pr_number}](https://github.com/python/mypy/pull/{c.pr_number})"
151152
s += ")"

0 commit comments

Comments
 (0)