-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (29 loc) · 864 Bytes
/
commitlint.yml
File metadata and controls
35 lines (29 loc) · 864 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
32
33
34
35
name: Commitlint
on:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
commitlint:
name: Lint commits
if: github.event.pull_request.draft != true
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
- name: Setup toolchain
uses: ./.github/actions/setup-turbo
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
install-python: 'false'
start-turbo-cache: 'false'
- name: Run commitlint
run: bunx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose