mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
dev(ci): ignore fixup!/squash!/wip commits
Otherwise the commit linter makes rebasing impossible without --no-verify, or in magit if the git hooks are installed.
This commit is contained in:
@ -231,6 +231,7 @@
|
|||||||
bang (equal (match-string 2) "!")
|
bang (equal (match-string 2) "!")
|
||||||
scopes (ignore-errors (split-string (match-string 3) ","))
|
scopes (ignore-errors (split-string (match-string 3) ","))
|
||||||
summary (match-string 4)))))
|
summary (match-string 4)))))
|
||||||
|
(unless (string-match-p "^\\(?:\\(?:fixup\\|squash\\)!\\|FIXUP\\|WIP\\) " subject)
|
||||||
(dolist (fn doom-cli-commit-rules)
|
(dolist (fn doom-cli-commit-rules)
|
||||||
(pcase (funcall fn
|
(pcase (funcall fn
|
||||||
:bang bang
|
:bang bang
|
||||||
@ -253,7 +254,7 @@
|
|||||||
(when warnings
|
(when warnings
|
||||||
(cl-incf warnings?)
|
(cl-incf warnings?)
|
||||||
(dolist (e (reverse warnings))
|
(dolist (e (reverse warnings))
|
||||||
(print! (warn "%s" e))))))))
|
(print! (warn "%s" e)))))))))
|
||||||
(when (> warnings? 0)
|
(when (> warnings? 0)
|
||||||
(print! (warn "Warnings: %d") warnings?))
|
(print! (warn "Warnings: %d") warnings?))
|
||||||
(when (> errors? 0)
|
(when (> errors? 0)
|
||||||
|
Reference in New Issue
Block a user