aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/commitlint.yml
blob: 09df580b45921a08154b2abdc2896f4d1e430e49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
name: "Commit Linter"
on:
  pull_request:
    types: [opened, synchronize, reopened, ready_for_review]
jobs:
  lint-commits:
    runs-on: ubuntu-latest
    if: github.event.pull_request.draft == false
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    steps:
      - uses: actions/checkout@v2.3.1
        with:
          fetch-depth: 0
      - 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})"