From f1b01eda7c8c464fa3bd287c98b34ebe2ea36690 Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Fri, 8 May 2026 13:22:31 -0400 Subject: [PATCH] ci(workflow): drop per-commit message lint, keep PR title check The per-commit commitlint job scanned every commit on a PR's branch, blocking merges on header length even when the PR title (which becomes the squash-merge subject) was already linted separately. Drop the `commitlint` job and rename the workflow's display name to reflect that it now lints only the PR title. --- .github/workflows/commit-lint.yml | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml index e765427..db3deee 100644 --- a/.github/workflows/commit-lint.yml +++ b/.github/workflows/commit-lint.yml @@ -1,4 +1,4 @@ -name: Lint Commit Messages +name: Lint PR Title on: pull_request: @@ -31,29 +31,3 @@ jobs: run: | echo "Validating PR title: $PR_TITLE" echo "$PR_TITLE" | npx commitlint --verbose - - commitlint: - name: Lint Commit Messages - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 # Fetch all history for all branches and tags - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Install commitlint - run: | - npm install --save-dev @commitlint/cli@18.4.3 @commitlint/config-conventional@18.4.3 - - - name: Validate PR commits - run: | - # Get the base branch (usually main) - BASE_SHA=$(git merge-base origin/${{ github.base_ref }} HEAD) - - # Lint all commits in the PR - npx commitlint --from $BASE_SHA --to HEAD --verbose