dev: add CODEOWNERS config to .doomrc & regenerate it
This commit is contained in:
parent
9b8ed397e8
commit
48e54d3d48
2 changed files with 172 additions and 171 deletions
28
.doomrc
28
.doomrc
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue