Skip to content

Name the Pull Request's Target in the Local Prose-Gate Command - #201

Merged
ptr727 merged 3 commits into
developfrom
fix-prose-gate-target
Nov 9, 2026
Merged

ptr727 merged 3 commits into
developfrom
fix-prose-gate-target

Conversation

@ptr727

@ptr727 ptr727 commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Summary

Answers CodeRabbit's OPERATIONS.md:16 finding on promotion PR #200. The fix lands here because the promotion's head is develop.

  • The documented local prose-gate command used git merge-base origin/develop HEAD. On a develop -> main promotion that merge base is the head itself, so the command checked no lines. It now takes the branch the pull request merges into, origin/<target>: develop for a feature branch, main for a promotion.
  • It no longer claims exact parity with CI, which diffs against the target's current tip.
  • It says a promotion needs no comments label, since the pinned validator stands the comment rule down there, while its local run takes --allow-comments.

Verification

  • markdownlint and the hub prose gate at the pinned rules: 0 findings.
  • Local strict review (frontier tier), two passes, checked against the pinned validate-task.yml ("Resolve prose base step", "Resolve comment stand-down step"). The first pass raised the comments-label sentence, fixed in f740227. The second found nothing.

🤖 Generated with Claude Code

ptr727 and others added 2 commits November 9, 2026 11:37
On a develop -> main promotion, git merge-base origin/develop HEAD is
the head itself, so the documented command checked no lines. The
command now takes the branch the pull request merges into, and the text
no longer claims exact parity with CI, which diffs against the target's
current tip.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The gate stands the comment rule down on a develop -> main promotion,
so only a feature pull request needs the label, while a promotion's
local run always takes --allow-comments.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI lite review requested due to automatic review settings November 9, 2026 19:42
@ptr727

ptr727 commented Nov 9, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head f740227ce190d1daa021456ccf40c8ceeeff12a1, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 36 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between f90039c and d1b9863.

Files selected for processing: 1

  • OPERATIONS.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Copilot AI 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.

🟡 Changes recommended

A moderate active finding remains in OPERATIONS.md because the documented Git command can resolve the target to the wrong branch and review incorrect lines.

1 open issue
What changed in this PR

Updates OPERATIONS.md so the local prose-gate command uses the pull request’s target branch, including feature and promotion workflows.

Changes:

  • Replaces the hard-coded origin/develop merge base with a target-branch reference.
  • Documents target selection for feature pull requests and promotions.
  • Clarifies local-versus-CI diff behavior and comment-label handling.
File Summary Review finding
OPERATIONS.md Updates local prose-gate instructions for target-aware verification and comment handling. P2: Use the fully qualified remote-tracking ref refs/remotes/origin/<target> to avoid resolving the wrong branch.

This pull request requires changes.

Review effort: Lite

Comment thread OPERATIONS.md Resolved
Git resolves a short origin/<target> against local branches first, so
the command names refs/remotes/origin/<target>, as local-strict-review
does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ptr727

ptr727 commented Nov 9, 2026

Copy link
Copy Markdown
Owner Author

A recorded local strict-review pass covers head d1b9863062ea95b5b2eef4f223cd69872f29929a, the content this pull request carries at that commit against develop, and it recorded 0 findings.

@ptr727
ptr727 merged commit e6e9a23 into develop Nov 9, 2026
12 checks passed
@ptr727
ptr727 deleted the fix-prose-gate-target branch November 9, 2026 19:50
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