Skip to content

Commit

Permalink
chore: fix make changelog script with entry is empty
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Jan 3, 2023
1 parent 5ccc2ec commit 0d02357
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tools/make_changelog.py
Expand Up @@ -31,8 +31,10 @@
missing = []

for issue in issues:
changelog = ENTRY.findall(issue.body)
if changelog:
changelog = ENTRY.findall(issue.body or "")
if not changelog or not changelog[0]:
missing.append(issue)
else:
(msg,) = changelog
if not msg.startswith("* "):
msg = "* " + msg
Expand All @@ -44,9 +46,6 @@
print(Syntax(msg, "rst", theme="ansi_light", word_wrap=True))
print()

else:
missing.append(issue)

if missing:
print()
print("[blue]" + "-" * 30)
Expand Down

0 comments on commit 0d02357

Please sign in to comment.