Skip to content

chore(ci): limit commitlint to pull request commits - #3686

Merged
finetjul merged 1 commit into
Kitware:masterfrom
PaulHax:commitlint-pr-range
Oct 19, 2026
Merged

finetjul merged 1 commit into
Kitware:masterfrom
PaulHax:commitlint-pr-range

Conversation

@PaulHax

@PaulHax PaulHax commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

Context

PR #3677 failed commitlint on a 104-character body line in a Dependabot commit already merged into master via #3663. The repository intentionally skips commit-message linting for Dependabot runs, so that message was not checked when its PR ran.

GitHub checks out a temporary merge commit for PR checks. Without an explicit upper bound, commitlint included that unrelated target-branch commit and rejected its message during the non-Dependabot run.

Results

Commitlint checks the PR's base-to-head range.

Changes

Add --to=${{ github.event.pull_request.head.sha }} to the existing command, following commitlint's official CI guidance.

PR Checklist

  • GitHub Actions CI passed

@finetjul
finetjul added this pull request to the merge queue Oct 19, 2026
Merged via the queue into Kitware:master with commit 221d556 Oct 19, 2026
4 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 37.4.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions Bot added the released Automated label label Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Automated label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants