Skip to content

chore(ci): relax commit body line-length to warning#1416

Draft
samchu-zsl wants to merge 1 commit into
alibaba:mainfrom
samchu-zsl:ci/relax-commit-body-length
Draft

chore(ci): relax commit body line-length to warning#1416
samchu-zsl wants to merge 1 commit into
alibaba:mainfrom
samchu-zsl:ci/relax-commit-body-length

Conversation

@samchu-zsl

Copy link
Copy Markdown
Collaborator

Description

The config-conventional preset inherited by .github/commitlint.config.json enforces body-max-line-length at 100 as a hard error, which blocked commits that legitimately need long single lines (pasted URLs, stack traces). This change adds an explicit override downgrading the rule to a warning (level 1) at the same 100-char limit, so contributors get nudged without being blocked. header-max-length and the scope rules remain hard errors.

Related Issue

no-issue: minor CI lint config tweak

Type / Scope

  • ci

Testing

Config-only change. Verified body-max-line-length is now level 1 (warning) in .github/commitlint.config.json; wagoid/commitlint-github-action defaults to failOnWarnings: false, so warnings no longer fail the lint job.

@samchu-zsl samchu-zsl requested a review from kongche-jbw as a code owner July 9, 2026 09:47
@github-actions github-actions Bot added the scope:ci ./.github/ label Jul 9, 2026
The config-conventional preset enforces body-max-line-length at 100 as
a hard error, which blocked commits that paste long URLs or stack
traces. Downgrade it to a warning so contributors are nudged without
being blocked; header-max-length and scope rules stay as errors.

Assisted-by: Qoder
Signed-off-by: shenglongzhu <samchu.zsl@alibaba-inc.com>
@samchu-zsl samchu-zsl force-pushed the ci/relax-commit-body-length branch from 874f375 to e4f8b95 Compare July 9, 2026 09:52
@samchu-zsl samchu-zsl changed the title ci: relax commit body line-length to warning chore(ci): relax commit body line-length to warning Jul 9, 2026
@samchu-zsl samchu-zsl marked this pull request as draft July 9, 2026 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:ci ./.github/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant