From 5d1d0fc7c98d7db311b855c40fc19d87e6d8937a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 1 Aug 2021 11:43:22 -0400 Subject: [PATCH] dev: add linter rule for Refs: in commit footer + No colon. + One ref per line. Bad: Refs: A B C Ref: X Y Ref: Z Good: Ref A Ref B Ref C Ref X Ref Y Ref Z --- core/cli/ci.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/cli/ci.el b/core/cli/ci.el index 97f60aab8..66365c272 100644 --- a/core/cli/ci.el +++ b/core/cli/ci.el @@ -92,9 +92,9 @@ ;; TODO Add bump validations for revert: type. (cons (lambda () - (re-search-forward "^\\(\\(Fix\\|Clos\\|Revert\\)ed\\|Reference[sd]\\): " + (re-search-forward "^\\(\\(Fix\\|Clos\\|Revert\\)ed\\|Reference[sd]\\|Refs\\): " nil t)) - "Use present tense/imperative voice for references, without a colon") + "Use present tense/imperative voice for footer references, without a colon") ;; TODO Check that bump/revert SUMMARY list: 1) valid modules and 2) ;; modules whose files are actually being touched.