Skip to content

Commit 8c0f732

Browse files
committed
ci: lint commit message
1 parent 556ad3a commit 8c0f732

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
steps:
2121
- name: Checkout
2222
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
2325

2426
- name: Collect Workflow Telemetry
2527
uses: catchpoint/workflow-telemetry-action@v2
@@ -41,6 +43,9 @@ jobs:
4143
- name: Install dependencies
4244
run: yarn install --immutable --inline-builds
4345

46+
- name: Validate PR commits with commitlint
47+
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
48+
4449
- name: Format
4550
run: yarn format-check
4651

0 commit comments

Comments
 (0)