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:
Henrik Lissner 2021-10-06 01:20:04 +02:00
parent 473eda795a
commit 0b07264619

View file

@ -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"