dev(ci): suppress summary length warnings for bump/revert commits

This commit is contained in:
Henrik Lissner 2021-11-04 01:43:10 +01:00
parent d6262dd287
commit 710eab10c7

View file

@ -89,9 +89,9 @@ representing the current commit being checked against. See
(let ((len (length subject))) (let ((len (length subject)))
(cond ((<= len 10) (cond ((<= len 10)
(fail! "Subject is too short (<10) and should be more descriptive")) (fail! "Subject is too short (<10) and should be more descriptive"))
((memq type '(bump revert)))
((<= len 20) ((<= len 20)
(warn! "Subject is short (<20); are you sure it's descriptive enough?")) (warn! "Subject is short (<20); are you sure it's descriptive enough?"))
((memq type '(bump revert)))
((> len 72) ((> len 72)
(fail! "Subject is %d characters, above the 72 maximum" (fail! "Subject is %d characters, above the 72 maximum"
len)) len))