diff options
| author | Michael Lingelbach <m.j.lbach@gmail.com> | 2021-07-18 13:09:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-18 13:09:59 -0700 |
| commit | 9767500af8bd3422e048aded363607c49f676dea (patch) | |
| tree | ee979766013fbcd6af13f9f70049976df26c7239 /.github/workflows/commit_lint.yml | |
| parent | [docgen] Update CONFIG.md (diff) | |
| download | nvim-lspconfig-9767500af8bd3422e048aded363607c49f676dea.tar nvim-lspconfig-9767500af8bd3422e048aded363607c49f676dea.tar.gz nvim-lspconfig-9767500af8bd3422e048aded363607c49f676dea.tar.bz2 nvim-lspconfig-9767500af8bd3422e048aded363607c49f676dea.tar.lz nvim-lspconfig-9767500af8bd3422e048aded363607c49f676dea.tar.xz nvim-lspconfig-9767500af8bd3422e048aded363607c49f676dea.tar.zst nvim-lspconfig-9767500af8bd3422e048aded363607c49f676dea.zip | |
ci: switch to GHA for commit lint (#982)
Diffstat (limited to '.github/workflows/commit_lint.yml')
| -rw-r--r-- | .github/workflows/commit_lint.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/commit_lint.yml b/.github/workflows/commit_lint.yml new file mode 100644 index 00000000..b1329766 --- /dev/null +++ b/.github/workflows/commit_lint.yml @@ -0,0 +1,12 @@ +on: [pull_request] +jobs: + lint-commits: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2.3.1 + with: + fetch-depth: 0 + - run: npm install --save-dev @commitlint/{cli,config-conventional} + - run: | + echo "module.exports = { extends: ['@commitlint/config-conventional'] };" > commitlint.config.js + - run: npx commitlint -- --from HEAD~1 --to HEAD --verbose |
