mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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"
|
||||
|
Reference in New Issue
Block a user