aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/commitlint.yml
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2021-09-26 21:13:59 +0200
committerGitHub <noreply@github.com>2021-09-26 12:13:59 -0700
commit3246bf5f4e24025b4a14ed99eeb4a8f954626519 (patch)
treeec5b8789eadf775e0151c0e6d3db7835973ae30b /.github/workflows/commitlint.yml
parent9686c21237cab5d0035cfed181f5f5cdcc90bd5a (diff)
downloadrneovim-3246bf5f4e24025b4a14ed99eeb4a8f954626519.tar.gz
rneovim-3246bf5f4e24025b4a14ed99eeb4a8f954626519.tar.bz2
rneovim-3246bf5f4e24025b4a14ed99eeb4a8f954626519.zip
ci(lintcommit.lua): replace third-party commitlint #15747
Diffstat (limited to '.github/workflows/commitlint.yml')
-rw-r--r--.github/workflows/commitlint.yml12
1 files changed, 5 insertions, 7 deletions
diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml
index 9ae138fbd7..4c9c526946 100644
--- a/.github/workflows/commitlint.yml
+++ b/.github/workflows/commitlint.yml
@@ -9,10 +9,8 @@ jobs:
- uses: actions/checkout@v2.3.1
with:
fetch-depth: 0
- - run: npm install --save-dev @commitlint/cli
- - run: |
- if [[ "$(gh pr view ${{ github.event.pull_request.number }} --json commits --jq '.[][0].messageHeadline')" == vim-patch* ]];then
- npx commitlint --from HEAD~1 --to HEAD --verbose --help-url https://github.com/neovim/neovim/blob/master/CONTRIBUTING.md#commit-messages --config .github/workflows/commitlint.config_patch.js
- else
- npx commitlint --from HEAD~1 --to HEAD --verbose --help-url https://github.com/neovim/neovim/blob/master/CONTRIBUTING.md#commit-messages --config .github/workflows/commitlint.config.js
- fi
+ - uses: rhysd/action-setup-vim@v1
+ with:
+ neovim: true
+ - run: gh pr checkout ${{ github.event.pull_request.number }}
+ - run: nvim --clean -es +"lua require('scripts.lintcommit').main({trace=true})"