diff --git a/core/cli/ci.el b/core/cli/ci.el index 688dcae11..97f60aab8 100644 --- a/core/cli/ci.el +++ b/core/cli/ci.el @@ -41,13 +41,13 @@ (cons (concat "^\\(" (regexp-opt - '("bump" "dev" "docs" "feat" "fix" "merge" "nit" "perf" + '("bump" "dev" "docs" "feat" "fix" "merge" "module" "nit" "perf" "refactor" "release" "revert" "test" "tweak")) "\\)!?[^ :]*: ") "Invalid type") (cons (lambda () - (looking-at "^\\(bump\\|revert\\|release\\|merge\\)!?([^)]+):")) + (looking-at "^\\(bump\\|revert\\|release\\|merge\\|module\\)!?([^)]+):")) "This commit type's scope goes after the colon, not before") (cons (lambda () @@ -89,6 +89,8 @@ nil t)))) "Bump commit doesn't contain commit diff") + ;; TODO Add bump validations for revert: type. + (cons (lambda () (re-search-forward "^\\(\\(Fix\\|Clos\\|Revert\\)ed\\|Reference[sd]\\): " nil t))