Skip to content

build: add commit message tooling#1183

Merged
hieblmi merged 1 commit into
lightninglabs:masterfrom
hieblmi:gate-commit-messages
Jul 22, 2026
Merged

build: add commit message tooling#1183
hieblmi merged 1 commit into
lightninglabs:masterfrom
hieblmi:gate-commit-messages

Conversation

@hieblmi

@hieblmi hieblmi commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator
  • Adds scripts/commit_message.py for linting, formatting, and safely rewording commit messages.
  • Enforces <package>: <summary> subjects with 69-character subjects and 72-character body lines.
  • Preserves lists, quotes, code blocks, and Git trailers when formatting.
  • Adds commitmsg-lint, commitmsg-fmt, and commitmsg-reword Make targets.
  • Adds a GitHub Actions job that lints commit ranges on pull requests and pushes.
  • Documents the supported workflows and literal newline handling.

Add a repository-local tool to lint, format, and safely reword commit
messages. Preserve markdown lists, quotes, code blocks, and trailers
while enforcing subject and body width limits.

Expose linting, formatting, and rewording through Make targets and
document the supported workflows. Run the linter in CI for pull request
and push commit ranges so malformed messages are caught before merging.
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@hieblmi hieblmi self-assigned this Jul 22, 2026
@hieblmi
hieblmi requested review from bhandras and starius July 22, 2026 12:36

@bhandras bhandras left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I assume this is from wavelength? Nice addition, LGTM 🎉

@hieblmi

hieblmi commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks @bhandras, initially yes, but I took it from your server PR.

@hieblmi
hieblmi merged commit dbf1205 into lightninglabs:master Jul 22, 2026
10 checks passed
@hieblmi
hieblmi deleted the gate-commit-messages branch July 22, 2026 19:16
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