We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6784c8e commit 7b2b46dCopy full SHA for 7b2b46d
1 file changed
blurb/blurb.py
@@ -956,9 +956,13 @@ def init_tmp_with_template():
956
failure = str(e)
957
958
if not failure:
959
- assert len(blurb) # if parse_blurb succeeds, we should always have a body
960
- if len(blurb) > 1:
961
- failure = "Too many entries! Don't specify '..' on a line by itself."
+ with open(tmp_path, "rt", encoding="utf-8") as file:
+ for line in file:
+ if line.startswith(".. gh-issue:"):
962
+ issue_number = line.split(":")[1].strip()
963
+ if issue_number.isdigit() and int(issue_number) < 32426:
964
+ failure = "The gh-issue number should be 32426 or above."
965
+ break
966
967
if failure:
968
print()
0 commit comments