Files
headroom/.commitlintrc.json
f2cdcedb08 ci(commitlint): stop failing on long trailer lines after an issue reference (#4868)
## Description

commitlint (config-conventional) treats a commit-body line that mentions
an issue (`#1234`) as the start of the footer. The repo's required
`Assay-Ask:` trailer that follows is then checked against
`footer-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-length` is 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

- [x] CI / build config

## Changes Made

- `.commitlintrc.json`: `"footer-max-line-length": [0]`.

## Testing

Ran `@commitlint/cli@19` with `@commitlint/config-conventional@19` on a
message with an issue reference in the body and a 150-character
`Assay-Ask:` trailer:

```text
main's config:
✖   footer's lines must not be longer than 100 characters [footer-max-line-length]
✖   found 1 problems, 0 warnings
exit=1

this branch:
exit=0
```

## Real Behavior Proof

- Environment: macOS, Node 26, `@commitlint/cli@19`.
- Steps: the command above, against both config files.
- Observed: the old config rejects the message; the new config accepts
it. The type, subject and other rules are unchanged.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- devin-review-badge-begin -->

---

<a href="https://app.devin.ai/review/headroomlabs-ai/headroom/pull/4868"
target="_blank"><picture><source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img
src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4"
alt="Devin Review"></picture></a>
<!-- devin-review-badge-end -->

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: JerrettDavis <mxjerrett@gmail.com>
2026-11-14 10:03:59 +05:30

29 lines
478 B
JSON

{
"extends": ["@commitlint/config-conventional"],
"rules": {
"body-max-line-length": [0],
"footer-max-line-length": [0],
"footer-leading-blank": [0],
"subject-case": [0],
"type-enum": [
2,
"always",
[
"build",
"chore",
"ci",
"docs",
"deps",
"feat",
"fix",
"parity",
"perf",
"refactor",
"revert",
"style",
"test"
]
]
}
}