Skip to content

Commit 91156db

Browse files
committed
dev: update CODEOWNERS
1 parent 27539e2 commit 91156db

File tree

2 files changed

+177
-168
lines changed

2 files changed

+177
-168
lines changed

.doomrc

+18-14
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,24 @@
1919

2020
(after! doom-cli-make
2121
;;; Codeowners
22-
(dolist (path (doom-module-load-path (list doom-modules-dir)))
23-
;; I will be the default owner for everything in the repo unless a later
24-
;; match takes precedence.
25-
(add-to-list 'doom-make-codeowners "# The default owner(s) unless another takes precedence")
26-
(add-to-list 'doom-make-codeowners '("*" . "@doomemacs/maintainers"))
27-
;; Module maintainers (see https://git.doomemacs.org/teams)
28-
(save-match-data
29-
(add-to-list 'doom-make-codeowners "# Module maintainers")
30-
(when (string-match "/modules/\\([^/]+\\)/\\([^/]+\\)/$" path)
31-
(push (cons (substring (match-string 0 path) 1)
32-
(format "@doomemacs/%s-%s"
33-
(match-string 1 path)
34-
(match-string 2 path)))
35-
doom-make-codeowners)))))
22+
;; I will be the default owner for everything in the repo unless a later match
23+
;; takes precedence.
24+
(add-to-list 'doom-make-codeowners "# The default owner(s) unless another takes precedence")
25+
(add-to-list 'doom-make-codeowners '("*" . "@doomemacs/maintainers"))
26+
;; Module maintainers (see https://git.doomemacs.org/teams)
27+
(add-to-list 'doom-make-codeowners "# Module maintainers")
28+
(save-match-data
29+
(setq doom-make-codeowners
30+
(nreverse
31+
(append doom-make-codeowners
32+
(cl-sort
33+
(cl-loop for path in (doom-module-load-path (list doom-modules-dir))
34+
if (string-match "/modules/\\([^/]+\\)/\\([^/]+\\)$" path)
35+
collect (cons (substring (match-string 0 path) 1)
36+
(format "@doomemacs/%s-%s"
37+
(match-string 1 path)
38+
(match-string 2 path))))
39+
#'string-lessp :key #'car))))))
3640

3741
;;; Helpers
3842
(defun ci-check-module-scope (scope _plist)

0 commit comments

Comments
 (0)