Repository navigation
ci(commitlint): stop failing on long trailer lines after an issue reference - #4868
Open
chopratejas wants to merge 1 commit into
Open
chopratejas wants to merge 1 commit into
chopratejas wants to merge 1 commit into
Conversation
…erence commitlint treats a body line that mentions an issue as the start of the footer, so the required Assay-Ask trailer that follows it is checked against the 100-character footer limit and fails. Body lines are already unlimited; footer lines now are too. Assay-Kind: config Assay-Ask: Commitlint failed PRs whose commit body mentioned an issue number before a long required trailer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chopratejas
requested review from
DevanshiVyas and
JerrettDavis
as code owners
November 13, 2026 22:29
Contributor
PR governanceThis PR does not yet satisfy the required template fields:
Please update the PR body, or move the PR back to draft while it is still in progress. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
commitlint (config-conventional) treats a commit-body line that mentions an issue (
#1234) as the start of the footer. The repo's requiredAssay-Ask:trailer that follows is then checked againstfooter-max-line-length(100) and fails, so a commit like "merge main into the branch, picks up #4835" fails commitlint even though its subject and type are fine.body-max-line-lengthis already disabled; this disables the footer limit the same way.Because the commitlint job checks out the PR merged with main, this also clears the failure on open PRs on their next run.
Type of Change
Changes Made
.commitlintrc.json:"footer-max-line-length": [0].Testing
Ran
@commitlint/cli@19with@commitlint/config-conventional@19on a message with an issue reference in the body and a 150-characterAssay-Ask:trailer:Real Behavior Proof
@commitlint/cli@19.🤖 Generated with Claude Code