Skip to content

Relax commit message check for URLs - #385

Merged
jserv merged 2 commits into
sysprog21:mainfrom
henrybear327:commit-msg-url
Sep 16, 2026
Merged

jserv merged 2 commits into
sysprog21:mainfrom
henrybear327:commit-msg-url

Conversation

@henrybear327

@henrybear327 henrybear327 commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

In 32d7227, a strict max 72-char per line check is introduced, which will block the commit which contains URL references.


Summary by cubic

The commit-message hook previously rejected every body line longer than 72 characters. It now permits overflow only when everything after column 72 belongs to one unbroken word containing an http or https URL; prose before or after that URL remains subject to the limit.

Bug Fixes

  • Documents the exception in CONTRIBUTING.md and adds coverage for valid URL placements and invalid overlong lines.

Written for commit 17c71a6. Summary will update on new commits.

Review in cubic

@henrybear327
henrybear327 requested a review from jserv September 15, 2026 16:45
@henrybear327 henrybear327 self-assigned this Sep 15, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread scripts/git-commit-msg.sh Outdated
The body width rule rejects every line over 72 characters, including
one that holds only a link, and a URL cannot be wrapped.

Accept a line when everything past column 72 is one word containing an
http or https URL. Other schemes and prose after the link are still
rejected.
Rule 6 in CONTRIBUTING.md reads as a flat 72-character limit, while the
commit-msg hook lets a line run past it when everything beyond column
72 is one word containing an http or https URL. State that exception
below the rule list.
@jserv
jserv merged commit b05f639 into sysprog21:main Sep 16, 2026
15 checks passed
@jserv

jserv commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Thank @henrybear327 for contributing!

@henrybear327
henrybear327 deleted the commit-msg-url branch September 16, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants