Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 1257a47

Browse files
committed
fix(ci): lint only PR title since repo is squash-merge only
Reverts the commitlint ignores rule from the previous commit and instead removes the per-commit lint step entirely. Individual commit messages are discarded at merge time — only the squash-merged PR title lands in main and drives changelog generation. Drop the per-commit lint, keep the PR title check, and remove the now-unnecessary fetch-depth: 0.
1 parent c395657 commit 1257a47

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

‎.github/workflows/commit-lint.yaml‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ jobs:
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v6
24-
with:
25-
fetch-depth: 0
2624

2725
- name: Setup Node.js
2826
uses: actions/setup-node@v6
@@ -33,14 +31,7 @@ jobs:
3331
- name: Install dependencies
3432
run: npm install --ignore-scripts
3533

36-
- name: Lint commits
37-
if: github.event.action != 'edited'
38-
env:
39-
FROM_SHA: ${{ github.event.pull_request.base.sha }}
40-
TO_SHA: ${{ github.event.pull_request.head.sha }}
41-
run: npx commitlint --from "$FROM_SHA" --to "$TO_SHA" --verbose
42-
43-
- name: Lint PR title (squash-merge path)
34+
- name: Lint PR title
4435
env:
4536
PR_TITLE: ${{ github.event.pull_request.title }}
4637
run: printf '%s\n' "$PR_TITLE" | npx commitlint --verbose

‎commitlint.config.js‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
module.exports = {
55
extends: ["@commitlint/config-conventional"],
6-
// Skip GitHub auto-generated commits (web-UI suggestion accepts, merge commits)
7-
ignores: [(message) => /^Apply suggestion/.test(message)],
86
rules: {
97
"type-enum": [
108
2,

0 commit comments

Comments
 (0)