doomemacs/core/cli
Henrik Lissner 4bae9ffa47
refactor(ci): generalize commit linter api
Continues from 47d1b82 as part of an effort to generalize Doom's CI for
use outside this repo:

- 'doom ci ...' commands now:
  - Run in the context of the local repo where they're run, rather than
    from Doom's install directory ($EMACSDIR).
  - Load the first of $REPO_ROOT/.github/ci.el, $DOOMDIR/cli.el, or
    $DOOMDIR/cli.el, before executing CI commands. This allows for
    per-project configuration, for example:
    - https://github.com/doomemacs/doomemacs/blob/master/.github/ci.el
    - https://github.com/doomemacs/themes/blob/master/.github/ci.el
    (Details may change post-3.0)
- Scopeless commit types are now enforced in `doom-cli-commit-scopes`,
  rather than `doom-cli-commit-rules`. This lets you specify exceptions,
  like 0597466261.
- `doom-cli-commit-scopes` now supports sub-lists, as an easy way to
  permit type-local scopes. E.g. To allow 'install' and 'faq' scopes
  only for 'docs:' commits.

    (add-to-list 'doom-cli-commit-scopes '(docs "install" "faq"))

  These sublists accepts predicates too.
- Fixed the link to git conventions in the linter's failure/warning
  output, to point to our Discourse post.

Ref: https://github.com/doomemacs/doomemacs/blob/master/.github/ci.el
Ref: https://github.com/doomemacs/themes/blob/master/.github/ci.el
Ref: 0597466261
Amend: 47d1b82382
2022-05-05 15:32:35 +02:00
..
lib fix(cli): GIT_CONFIG* envvars leaking child processes 2022-04-21 22:36:36 +02:00
autoloads.el fix(cli): remove bufler from excluded autoloads 2022-03-31 19:25:49 +02:00
byte-compile.el Refactor doom-{path,file,dir,glob} 2021-05-23 21:49:02 -04:00
ci.el refactor(ci): generalize commit linter api 2022-05-05 15:32:35 +02:00
debug.el fix(cli): remove debug error call in 'doom version' 2022-04-01 19:12:35 +02:00
doctor.el docs: add doctor warning about lack of nativecomp 2022-04-12 02:32:53 +02:00
env.el fix(cli): ignore system/user git configs 2022-03-31 01:06:07 +02:00
help.el Fix 'doom help' 2020-08-24 23:36:11 -04:00
install.el feat(cli): allow opting-out of deploying git hooks 2022-01-27 15:06:45 +01:00
packages.el fix(cli): update recipe repos (MELPA/ELPA/etc) earlier 2021-11-22 16:49:43 +01:00
sync.el doom purge: delete old ELN directories 2021-01-31 04:30:48 -05:00
test.el Refactor autoload generator bootstrappers 2020-01-01 13:31:40 -05:00
upgrade.el doom upgrade: delete straight if recipe changed 2021-05-06 04:27:33 -04:00