Skip to content
Merged
Changes from 1 commit
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
10 changes: 7 additions & 3 deletions blurb/blurb.py
Original file line number Diff line number Diff line change
Expand Up @@ -956,9 +956,13 @@ def init_tmp_with_template():
failure = str(e)

if not failure:
assert len(blurb) # if parse_blurb succeeds, we should always have a body
if len(blurb) > 1:
failure = "Too many entries! Don't specify '..' on a line by itself."
Comment thread
menkotoglou marked this conversation as resolved.
with open(tmp_path, "rt", encoding="utf-8") as file:
Comment thread
menkotoglou marked this conversation as resolved.
Outdated
for line in file:
if line.startswith(".. gh-issue:"):
issue_number = line.split(":")[1].strip()
if issue_number.isdigit() and int(issue_number) < 32426:
Comment thread
menkotoglou marked this conversation as resolved.
Outdated
failure = "The gh-issue number should be 32426 or above."
break

if failure:
print()
Expand Down