|
19 | 19 |
|
20 | 20 | (after! doom-cli-make
|
21 | 21 | ;;; 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)))))) |
36 | 40 |
|
37 | 41 | ;;; Helpers
|
38 | 42 | (defun ci-check-module-scope (scope _plist)
|
|
0 commit comments