From 0b072646193e9ef606996f821e2a503769d9e443 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 6 Oct 2021 01:20:04 +0200 Subject: [PATCH] dev(ci): allow capitalization in revert commits In case you're reverting an old commit, from before we adopted our git conventions. --- core/cli/ci.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/cli/ci.el b/core/cli/ci.el index 7972497ee..aabbbda5b 100644 --- a/core/cli/ci.el +++ b/core/cli/ci.el @@ -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"