From eac22b86fa1cc9b7037e211c99e89bacb9bf837d Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Fri, 30 Jan 2026 11:11:20 -0500 Subject: [PATCH] ci(workflow): lint only PR title, not individual commits --- .github/workflows/commit-lint.yml | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml index e765427..eff5076 100644 --- a/.github/workflows/commit-lint.yml +++ b/.github/workflows/commit-lint.yml @@ -1,8 +1,8 @@ -name: Lint Commit Messages +name: Lint PR Title on: pull_request: - types: [opened, edited, reopened, synchronize] + types: [opened, edited, reopened] permissions: contents: read @@ -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