mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
check-commit: be more picky about detection of wrong bug tag
The check-commit script search for "bug" withing bracket and ask people to use (issueXXXX) instead. The test was too wide and matching any "(+b+u+g"sequence.
This commit is contained in:
parent
824e19a989
commit
812e82cf4f
@ -20,7 +20,7 @@ import re, sys, os
|
|||||||
errors = [
|
errors = [
|
||||||
(r"[(]bc[)]", "(BC) needs to be uppercase"),
|
(r"[(]bc[)]", "(BC) needs to be uppercase"),
|
||||||
(r"[(]issue \d\d\d", "no space allowed between issue and number"),
|
(r"[(]issue \d\d\d", "no space allowed between issue and number"),
|
||||||
(r"[(]bug", "use (issueDDDD) instead of bug"),
|
(r"[(]bug(\d|\s)", "use (issueDDDD) instead of bug"),
|
||||||
(r"^# User [^@\n]+$", "username is not an email address"),
|
(r"^# User [^@\n]+$", "username is not an email address"),
|
||||||
(r"^# .*\n(?!merge with )[^#]\S+[^:] ",
|
(r"^# .*\n(?!merge with )[^#]\S+[^:] ",
|
||||||
"summary line doesn't start with 'topic: '"),
|
"summary line doesn't start with 'topic: '"),
|
||||||
|
Loading…
Reference in New Issue
Block a user