diff --git a/core/cli/ci.el b/core/cli/ci.el index 4b0b03d92..4434629b2 100644 --- a/core/cli/ci.el +++ b/core/cli/ci.el @@ -87,9 +87,9 @@ representing the current commit being checked against. See (fn! (&key type subject) "Test SUBJECT length" (let ((len (length subject))) - (cond ((<= len 10) + (cond ((memq type '(bump revert))) + ((<= len 10) (fail! "Subject is too short (<10) and should be more descriptive")) - ((memq type '(bump revert))) ((<= len 20) (warn! "Subject is short (<20); are you sure it's descriptive enough?")) ((> len 72)