• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sds / overcommit / 38794808497
92%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 15 Oct 2026 07:34PM UTC
Jobs 8
Files 223
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Oct 2026 07:32PM UTC coverage: 91.971% (+0.006%) from 91.965%
38794808497

push

github

web-flow
Allow URL-only lines to exceed TextWidth body limit (#900)

## Description

`CommitMsg::TextWidth` warns on every body line longer than
`max_body_width`, including lines that contain nothing but a URL. A URL
can't be wrapped without breaking it (in the terminal and on GitHub), so
these warnings can't be fixed without making the message worse.

This PR exempts body lines that consist solely of a URL (`scheme://...`,
surrounding whitespace ignored), optionally written as a Markdown-style
link reference such as `[1]: https://...`. Lines that mix a URL with
other text are still checked as before, and the subject line checks are
unchanged. No new configuration option is added; the exemption is always
on, since an over-long URL-only line is never actionable.

**Motivation / disclosure:** I had some spare AI-assistant quota (Claude
Code) and am using it to try to
help projects with open good-first-issues. The change was prepared with
Claude Code and verified as listed
below. If it doesn't fit, isn't up to your bar, or you'd simply rather
not take it — please feel free to
close it, no hard feelings at all 🙂

## Related issue

Closes #822

## Checklist

- [x] Tests pass locally (`bundle exec rspec
spec/overcommit/hook/commit_msg/text_width_spec.rb`: 19 examples, 0
failures; the 2 new URL-only specs fail without the fix. Full `bundle
exec rspec` on Ruby 3.4: 1647 examples, 1 failure (`utils_spec.rb:35`,
`repo_root` with no `.git` directory), which fails identically on `main`
in my environment. `bundle exec overcommit --run`: all pre-commit hooks
passed)
- [ ] `CHANGELOG.md` is updated (if applicable) — n/a, entries appear to
be added when a version is cut; happy to add one if you prefer
- [ ] Documentation is updated (if applicable) — n/a, the behavior is
described in the hook's source comment

5 of 5 new or added lines in 1 file covered. (100.0%)

3322 of 3612 relevant lines covered (91.97%)

3266.38 hits per line

Jobs
ID Job ID Ran Files Coverage
1 ruby4.0-ubuntu - 38794808497.1 15 Oct 2026 07:34PM UTC 446
91.94
GitHub Action Run
2 ruby3.1-ubuntu - 38794808497.2 15 Oct 2026 07:34PM UTC 446
91.88
GitHub Action Run
3 ruby2.7-ubuntu - 38794808497.3 15 Oct 2026 07:35PM UTC 446
91.91
GitHub Action Run
4 ruby2.6-ubuntu - 38794808497.4 15 Oct 2026 07:34PM UTC 446
91.91
GitHub Action Run
5 ruby3.2-ubuntu - 38794808497.5 15 Oct 2026 07:35PM UTC 446
91.88
GitHub Action Run
6 ruby3.3-ubuntu - 38794808497.6 15 Oct 2026 07:34PM UTC 446
91.93
GitHub Action Run
7 ruby3.4-ubuntu - 38794808497.7 15 Oct 2026 07:34PM UTC 446
91.94
GitHub Action Run
8 ruby3.0-ubuntu - 38794808497.8 15 Oct 2026 07:34PM UTC 446
91.91
GitHub Action Run
Source Files on build 38794808497
  • Tree
  • List 223
  • Changed 222
  • Source Changed 1
  • Coverage Changed 222
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38794808497
  • 4ddaec66 on github
  • Prev Build on main (#34018255334)
  • Next Build on main (#38794875984)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc