File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number <
8000
th scope="col">Diff line change@@ -482,15 +482,15 @@ def finish_entry():
482
482
# we'll complain about the *first* error
483
483
# we see in the blurb file, which is a
484
484
# better user experience.
485
- if key == "gh-issue" and int (value ) < lowest_possible_gh_issue_number :
486
- throw (f"The gh-issue number must be { lowest_possible_gh_issue_number } or above, not a PR number." )
487
-
488
485
if key in issue_keys :
489
486
try :
490
487
int (value )
491
488
except (TypeError , ValueError ):
492
489
throw (f"Invalid { issue_keys [key ]} issue number! ({ value !r} )" )
493
490
491
+ if key == "gh-issue" and int (value ) < lowest_possible_gh_issue_number :
492
+ throw (f"The gh-issue number must be { lowest_possible_gh_issue_number } or above, not a PR number." )
493
+
494
494
if key == "section" :
495
495
if no_changes :
496
496
continue
Original file line number Diff line number Diff line change @@ -224,6 +224,10 @@ def test_parse():
224
224
"..bpo: one-two\n ..section: IDLE\n Hello world!" ,
225
225
r"Invalid bpo issue number! \('one-two'\)" ,
226
226
),
227
+ (
228
+ "..gh-issue: one-two\n ..section: IDLE\n Hello world!" ,
229
+ r"Invalid GitHub issue number! \('one-two'\)" ,
230
+ ),
227
231
(
228
232
"..gh-issue: 123456\n ..section: Funky Kong\n Hello world!" ,
229
233
r"Invalid section 'Funky Kong'! You must use one of the predefined sections" ,
You can’t perform that action at this time.
0 commit comments