dev(ci): fix linter complaining about git Ref lines
Such as Co-authored-by: and Signed-off-by: lines.
This commit is contained in:
parent
5aeefc301b
commit
f80eed41bb
1 changed files with 11 additions and 10 deletions
|
@ -162,6 +162,7 @@
|
||||||
(catch 'found
|
(catch 'found
|
||||||
(dolist (line refs)
|
(dolist (line refs)
|
||||||
(cl-destructuring-bind (type . ref) (split-string line " +")
|
(cl-destructuring-bind (type . ref) (split-string line " +")
|
||||||
|
(unless (member type '("Co-authored-by:" "Signed-off-by:"))
|
||||||
(setq ref (string-join ref " "))
|
(setq ref (string-join ref " "))
|
||||||
(or (string-match "^\\(https?://.+\\|[^/]+/[^/]+\\)?\\(#[0-9]+\\|@[a-z0-9]+\\)" ref)
|
(or (string-match "^\\(https?://.+\\|[^/]+/[^/]+\\)?\\(#[0-9]+\\|@[a-z0-9]+\\)" ref)
|
||||||
(string-match "^https?://" ref)
|
(string-match "^https?://" ref)
|
||||||
|
@ -171,7 +172,7 @@
|
||||||
(throw 'found
|
(throw 'found
|
||||||
(cons 'error
|
(cons 'error
|
||||||
(format "%S is not a valid issue/PR, URL, or 12-char commit hash"
|
(format "%S is not a valid issue/PR, URL, or 12-char commit hash"
|
||||||
line))))))))
|
line)))))))))
|
||||||
|
|
||||||
;; TODO Check that bump/revert SUBJECT list: 1) valid modules and 2)
|
;; TODO Check that bump/revert SUBJECT list: 1) valid modules and 2)
|
||||||
;; modules whose files are actually being touched.
|
;; modules whose files are actually being touched.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue