dev: add CODEOWNERS config to .doomrc & regenerate it

This commit is contained in:
Henrik Lissner 2022-08-07 18:57:05 +02:00
parent 9b8ed397e8
commit 48e54d3d48
No known key found for this signature in database
GPG key ID: B60957CA074D39A3
2 changed files with 172 additions and 171 deletions

28
.doomrc
View file

@ -19,20 +19,20 @@
(after! doom-cli-make
;;; Codeowners
;; (dolist (path (cdr (doom-module-load-path (list doom-modules-dir))))
;; (save-match-data
;; (when (string-match "/modules/\\([^/]+\\)/\\([^/]+\\)/$" path)
;; (add-to-list 'doom-make-codeowners
;; (cons (format "%s*" (substring (match-string 0 path) 1))
;; (list "@doomemacs/maintainers"
;; (format "@doomemacs/%s-%s"
;; (match-string 1 path)
;; (match-string 2 path))))))))
;;; Documentation exporters
;; (add-to-list 'doom-ci-docs-title-replace '("^Doom Emacs " . ""))
)
(dolist (path (cdr (doom-module-load-path (list doom-modules-dir))))
;; I will be the default owner for everything in the repo unless a later
;; match takes precedence.
(add-to-list 'doom-make-codeowners "# The default owner(s) unless another takes precedence")
(add-to-list 'doom-make-codeowners '("*" . "@doomemacs/maintainers"))
;; Module maintainers (see https://git.doomemacs.org/teams)
(save-match-data
(add-to-list 'doom-make-codeowners "# Module maintainers")
(when (string-match "/modules/\\([^/]+\\)/\\([^/]+\\)/$" path)
(push (cons (substring (match-string 0 path) 1)
(format "@doomemacs/%s-%s"
(match-string 1 path)
(match-string 2 path)))
doom-make-codeowners)))))
;;; Helpers
(cl-defun ci-check-module-scope (scope (&key type &allow-other-keys))