dev: add commit linter workflow

Experimenting with an internal linter. Only trouble is, if Doom's CLI is
ever in a broken state, a contributor will have to know about
--no-verify option for git commit. This can be improved post CLI
rewrite.
This commit is contained in:
Henrik Lissner 2021-07-31 23:50:00 -04:00
parent ea1883c6eb
commit 074b9eb0d1
2 changed files with 183 additions and 0 deletions

11
.github/workflows/lint.yml vendored Normal file
View file

@ -0,0 +1,11 @@
name: Commit linter
on:
pull_request:
jobs:
lint-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.1
with:
fetch-depth: 0
- run: bin/doom ci lint-commits HEAD~1