Skip to content

🏗️🔧:refuse a squash-style (#123) subject suffix - #1925

Merged
openinf-commit-queue[bot] merged 1 commit into
livefrom
claude/full-audit-0e491i-pr-number-suffix
Oct 19, 2026
Merged

openinf-commit-queue[bot] merged 1 commit into
livefrom
claude/full-audit-0e491i-pr-number-suffix

Conversation

@DerekNonGeneric

@DerekNonGeneric DerekNonGeneric commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Requested by DerekNonGeneric · project thread

Before: the commit subject check rejected fix the thing #123, but fix 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 test fails only on the dprint and editorconfig-checker tasks, because those tools aren't installed in this sandbox.

Summary by CodeRabbit

  • Bug Fixes
    • Commit subject validation now flags trailing pull request numbers in both #123 and (#123) formats, and provides the existing guidance.

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
@netlify

netlify Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for gh-pages-openinf ready!

Name Link
🔨 Latest commit 078de7c
🔍 Latest deploy log https://app.netlify.com/projects/gh-pages-openinf/deploys/6ad60dfa56323148cdc68a93
😎 Deploy Preview https://deploy-preview-1925--gh-pages-openinf.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@DerekNonGeneric DerekNonGeneric self-assigned this Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 81191979-b79f-4445-9dac-556a492a7c7a
📥 Commits

Reviewing files that changed from the base of the PR and between 993ed90 and 078de7c.

📒 Files selected for processing: 2
  • build/shared/commit-message.mts
  • build/shared/commit-message.test.mts

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

📝 Walkthrough

The commit subject validator now flags trailing pull request numbers in both #123 and (#123) forms when preceded by whitespace. A test covers the parenthesized form.

Changes: Commit subject validation

Layer / File(s) Summary
Trailing pull request number validation
build/shared/commit-message.mts, build/shared/commit-message.test.mts
checkSubject now recognizes a trailing parenthesized pull request number. A test confirms that this form produces the existing PR-URL validation problem.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 078de

Both trailing pull-request-number formats now receive the PR-URL guidance, and tests cover each. No actionable merge-blocking risk remains.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main change: rejecting squash-style "(#123)" commit-subject suffixes. It is concise and specific, although the emoji prefix is unnecessary.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Copy link
Copy Markdown
Member Author

@coderabbitai review


Generated by Claude Code

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@DerekNonGeneric DerekNonGeneric added the 🚀 Status: Commit Queue Land this pull request when its checks pass label Oct 19, 2026 — with Claude
@openinf-commit-queue
openinf-commit-queue Bot merged commit 7870b54 into live Oct 19, 2026
19 checks passed
@openinf-commit-queue openinf-commit-queue Bot removed the 🚀 Status: Commit Queue Land this pull request when its checks pass label Oct 19, 2026
@openinf-commit-queue
openinf-commit-queue Bot deleted the claude/full-audit-0e491i-pr-number-suffix branch October 19, 2026 13:54
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.

1 participant