-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (26 loc) · 875 Bytes
/
commit-lint.yml
File metadata and controls
31 lines (26 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Advisory check: lint commit messages on the PR against Conventional
# Commits. Pairs with pr-title-lint.yml -- catches intermediate commits
# that the PR title check cannot see. Not required in the `dev`
# ruleset. (#69)
name: commit-lint
on:
pull_request:
branches: [dev]
concurrency:
group: commit-lint-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
jobs:
lint-commits:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # actions/checkout@v6
with:
fetch-depth: 0
persist-credentials: false
- uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # wagoid/commitlint-github-action@v6.2.1
with:
configFile: .commitlintrc.json