fix(ci): update ci config

To reflect recent changes to Doom's CLI framework.
This commit is contained in:
Henrik Lissner 2022-06-18 22:04:54 +02:00
parent 6c0b7e1530
commit 149306ef01
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

37
.github/ci.el vendored
View file

@ -2,19 +2,34 @@
;;; Commentary: ;;; Commentary:
;;; Code: ;;; Code:
;;; Types (after! core-cli-ci
(add-to-list 'doom-cli-commit-types 'module) ;;; Commit linter types
(add-to-list 'doom-cli-commit-scopeless-types 'module) (add-to-list 'doom-ci-commit-types 'module)
(add-to-list 'doom-ci-commit-scopeless-types 'module)
;;; Commit linter scopes
;;; Scopes (add-to-list 'doom-ci-commit-scopes "cli")
(add-to-list 'doom-cli-commit-scopes "cli") (add-to-list 'doom-ci-commit-scopes "lib")
(add-to-list 'doom-cli-commit-scopes "lib") (add-to-list 'doom-ci-commit-scopes "docs")
(add-to-list 'doom-cli-commit-scopes "docs") (add-to-list 'doom-ci-commit-scopes '(docs "install" ci-check-docs-scope))
(add-to-list 'doom-cli-commit-scopes '(docs "install" ci-check-docs-scope)) (add-to-list 'doom-ci-commit-scopes #'ci-check-module-scope)
(add-to-list 'doom-cli-commit-scopes #'ci-check-module-scope)
;; DEPRECATED Will be removed once modules live in their own repo ;; DEPRECATED Will be removed once modules live in their own repo
(add-to-list 'doom-cli-commit-scopes '(release "modules")) (add-to-list 'doom-ci-commit-scopes '(release "modules")))
(after! core-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 " . "")))
;;; Helpers ;;; Helpers