diff --git a/.doomrc b/.doomrc index 12180d703..d0d07a4e7 100644 --- a/.doomrc +++ b/.doomrc @@ -35,16 +35,13 @@ doom-make-codeowners))))) ;;; Helpers -(cl-defun ci-check-module-scope (scope (&key type &allow-other-keys)) +(defun ci-check-module-scope (scope _plist) "Only allow :CATEGORY or MODULE scopes if they actually exist." - (seq-find (doom-rpartial - #'doom-glob (if (string-prefix-p ":" scope) - (format "%s" (substring scope 1)) - (format "*/%s" scope))) - (list (doom-path (dir!) "../modules/") - (doom-path doom-user-dir "modules/")))) + (doom-glob (dir!) "modules" (if (string-prefix-p ":" scope) + (format "%s" (substring scope 1)) + (format "*/%s" scope)))) -(defun ci-check-docs-scope (scope _) +(defun ci-check-docs-scope (scope _plist) "Allow any filename in docs/* as a scope for docs commits." (member scope (doom-files-in (doom-path (dir!) "../docs")