Repository navigation
🏗️🔧:refuse a squash-style (#123) subject suffix - #1925
Merged
openinf-commit-queue[bot] merged 1 commit intoOct 19, 2026
Merged
Conversation
The subject check refused a pull request number written as ` #123` but let through ` (#123)`, which is the form GitHub itself appends when it squashes a pull request. The handbook and the pull request templates both say the subject carries no number, since `PR-URL:` already records it. Refuse a trailing `(#123)` as well, with the same message, and add a test for it. Commits written by bots, such as Renovate's squashed `(#N)` subjects, are still skipped before this check runs. Signed-off-by: Derek Lewis <DerekNonGeneric@inf.is> Assisted-by: Claude-Code:claude-opus-5
✅ Deploy Preview for gh-pages-openinf ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Member
Author
|
@coderabbitai review Generated by Claude Code |
✅ Action performedReview finished.
|
openinf-commit-queue
Bot
deleted the
claude/full-audit-0e491i-pr-number-suffix
branch
October 19, 2026 13:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by DerekNonGeneric · project thread
Before: the commit subject check rejected
fix the thing #123, butfix the thing (#123)got through. That second form is the one GitHub itself appends when it squashes.After: both forms are rejected with the same message, which says
PR-URL:carries the number.How: a one-line regex change in
build/shared/commit-message.mts, plus a test that fails without it. The same change goes to the other two copies in OpenINF/sdk and OpenINF/.github, so all three stay byte-identical. Bot-authored commits are skipped before this check runs. verify-unit (191/191) and the build pass. Locally,nps testfails only on the dprint and editorconfig-checker tasks, because those tools aren't installed in this sandbox.Summary by CodeRabbit
#123and(#123)formats, and provides the existing guidance.