Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion release-notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ def body_to_release_notes(pr):
## not found
## complain and return fallback
print(f"Release notes section not found in PR number {pr['number']}!!")
return body
return (
f"PR number {pr['number']} appears not to have a release notes section! Please check"
"that the body containes a second level heading (starting with `##`) named `Release "
"notes`, and have the entries as lists."
)
index2 = body.find('\n', index1) + 1 # the first line after the release notes line
bodylines = body[index2:].splitlines()
mdstring = ""
Expand Down