aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2023-02-11 13:22:54 +0100
committerGitHub <noreply@github.com>2023-02-11 13:22:54 +0100
commitb0d156c00b3900c8e40cf7f0e76c34b734d50598 (patch)
tree55c621007e92482e199515f1d62359df51923a31
parent374955bcc571dff05f068ec18d0f578d1f334c5f (diff)
downloadrneovim-b0d156c00b3900c8e40cf7f0e76c34b734d50598.tar.gz
rneovim-b0d156c00b3900c8e40cf7f0e76c34b734d50598.tar.bz2
rneovim-b0d156c00b3900c8e40cf7f0e76c34b734d50598.zip
ci: run lintcommit file from PR branch (#22219)
As the trigger type is no longer pull_request_target there is no longer any risk of using the lintcommit script directly from the user PR.
-rw-r--r--.github/workflows/lintcommit.yml4
1 files changed, 1 insertions, 3 deletions
diff --git a/.github/workflows/lintcommit.yml b/.github/workflows/lintcommit.yml
index 9941a01a9b..afedbe0b12 100644
--- a/.github/workflows/lintcommit.yml
+++ b/.github/workflows/lintcommit.yml
@@ -15,9 +15,7 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- path: pr_nvim
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
- - run: wget https://raw.githubusercontent.com/neovim/neovim/master/scripts/lintcommit.lua
- - run: nvim --clean -es +"cd pr_nvim" +"lua dofile('../lintcommit.lua').main({trace=false})"
+ - run: nvim --clean -es +"lua require('scripts.lintcommit').main({trace=false})"