-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1 KB
/
Copy pathcommitlint.yml
File metadata and controls
40 lines (33 loc) · 1 KB
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
36
37
38
39
40
# Commitlint — chatislam
# Sprint Q-CHARTER T13 | charter § 18 enforcement
# Validates commit messages on PRs follow Conventional Commits format.
name: Commitlint
on:
pull_request:
branches: [main]
jobs:
commitlint:
name: Lint commit messages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
cache-dependency-path: web/pnpm-lock.yaml
- name: Install commitlint
run: pnpm add -D @commitlint/cli @commitlint/config-conventional --ignore-workspace-root-check
- name: Validate PR commits
run: |
npx commitlint \
--from "${{ github.event.pull_request.base.sha }}" \
--to "${{ github.event.pull_request.head.sha }}" \
--verbose
env:
COMMITLINT_CONFIG: ./commitlint.config.js