dev(ci): allow capitalization in revert commits
In case you're reverting an old commit, from before we adopted our git conventions.
This commit is contained in:
parent
473eda795a
commit
0b07264619
1 changed files with 3 additions and 2 deletions
|
@ -62,8 +62,9 @@
|
|||
(string-blank-p summary))
|
||||
(cons 'error "Commit has no summary")))
|
||||
|
||||
(fn! (&key summary subject)
|
||||
(and (stringp summary)
|
||||
(fn! (&key type summary subject)
|
||||
(and (not (eq type 'revert))
|
||||
(stringp summary)
|
||||
(string-match-p "^[A-Z][^-]" summary)
|
||||
(not (string-match-p "\\(SPC\\|TAB\\|ESC\\|LFD\\|DEL\\|RET\\)" summary))
|
||||
(cons 'error (format "%S in summary is capitalized; do not capitalize the summary"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue