2021-07-18 15:26:17 -07:00
|
|
|
name: "Commit Linter"
|
2021-10-08 17:08:47 -07:00
|
|
|
on:
|
2022-11-05 14:09:50 -07:00
|
|
|
pull_request:
|
2021-10-08 17:08:47 -07:00
|
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
2022-05-22 08:03:06 -07:00
|
|
|
branches:
|
|
|
|
- 'master'
|
2021-07-18 15:26:17 -07:00
|
|
|
jobs:
|
|
|
|
lint-commits:
|
|
|
|
runs-on: ubuntu-latest
|
2021-10-08 17:08:47 -07:00
|
|
|
if: github.event.pull_request.draft == false
|
2021-07-18 15:26:17 -07:00
|
|
|
steps:
|
2022-05-20 20:45:10 -07:00
|
|
|
- uses: actions/checkout@v3
|
2021-07-18 15:26:17 -07:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-10-19 00:54:48 -07:00
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
2021-09-26 12:13:59 -07:00
|
|
|
- uses: rhysd/action-setup-vim@v1
|
|
|
|
with:
|
|
|
|
neovim: true
|
2023-04-22 08:37:45 -07:00
|
|
|
- run: nvim --clean -l scripts/lintcommit.lua main
|