dev(ci): check all module dirs for valid scopes
Will become relevant once Doom's modules have been moved to their own repo.
This commit is contained in:
parent
a5098d1f2a
commit
d6262dd287
1 changed files with 5 additions and 4 deletions
|
@ -67,10 +67,11 @@ Accapted value types can be one or more of ref, hash, url, username, or name.")
|
||||||
scope)
|
scope)
|
||||||
(user-error "%s commits should never have a scope" type)))
|
(user-error "%s commits should never have a scope" type)))
|
||||||
(fn! (scope _)
|
(fn! (scope _)
|
||||||
(doom-glob doom-modules-dir
|
(seq-find (doom-rpartial
|
||||||
(if (string-prefix-p ":" scope)
|
#'doom-glob (if (string-prefix-p ":" scope)
|
||||||
(format "%s" (substring scope 1))
|
(format "%s" (substring scope 1))
|
||||||
(format "*/%s" scope)))))
|
(format "*/%s" scope)))
|
||||||
|
doom-modules-dirs)))
|
||||||
"A list of valid commit scopes as strings or functions.
|
"A list of valid commit scopes as strings or functions.
|
||||||
|
|
||||||
Functions should take two arguments: a single scope (symbol) and a commit plist
|
Functions should take two arguments: a single scope (symbol) and a commit plist
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue