fix(release): ignore fork PRs in dev bump guard - #3325
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe workflow now uses the GitHub API to detect open pull requests with a repository-owned head filter. The test reads the workflow and verifies the API query parameters and removal of the previous ChangesDevelopment version bump
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The development version-bump guard now ignores same-named fork pull requests while continuing to recognize repository-owned bump pull requests. The change is narrowly scoped with matching regression coverage and no remaining merge-blocking risk. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 1 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request has been marked Ready for Review. |
|
@Ingwannu Could you review this focused release-workflow guard and apply the maintainer-sponsored label if the boundary is acceptable? The change only filters the existing PR idempotency query by isCrossRepository and adds a regression. Focused Bun verification is 10 pass, 1 platform-conditional skip, 0 fail; live readback confirmed fork heads are excluded while same-repository heads remain counted; an independent focused review found no permissions, quoting, fail-open, or TOCTOU regression. |
리뷰 · 우선순위 63 / 80설명 이 PR은 패치는
draft + 미체크 체크리스트 + hygiene unsponsored_surface - 코드 리뷰와 별개로 게이트가 막아 둔 상태다. 내용이 맞아도 스폰서 라벨과 ready 전환이 필요하다. 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
bc47fc9 to
e0491c4
Compare
|
@Ingwannu Correction to my sponsorship note above: the current patch no longer uses |
|
Triaged in the 260904 bug-backlog closeout, and sponsored as maintainer. The fix is correct. The old branch-name-only Both failing checks report Rebase onto current |
e0491c4 to
871ae50
Compare
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
lidge-jun
left a comment
There was a problem hiding this comment.
Approving, with the maintainer security review this surface requires.
.github/workflows/dev-version-bump.yml is release automation, which AGENTS.md routes to explicit review — I sponsored it earlier and I am the reviewer here. The change adds no permissions, introduces no new secret usage, pins no mutable third-party action, and narrows what the idempotency guard accepts rather than widening it. Qualifying head with ${GITHUB_REPOSITORY_OWNER} on the server is the correct fix: a same-named fork branch could previously satisfy a check meant to detect this repository's own open bump PR, and per_page=1 is safe once the filter is exact.
The workflow regression asserting the block's shape is a good call, since this is a path no test can execute directly. bun test tests/bump-dev-version.test.ts is 10 pass / 1 skip / 0 fail.
Summary
Prevent fork-origin pull requests from satisfying the dev version-bump workflow's repository-owned idempotency guard.
Problem
The release workflow checks for an existing bump pull request with:
gh pr list --base dev --head "${branch}"The
--headfilter matches pull requests by branch name, including heads from forks. Because the generatedcodex/dev-version-${NEXT_VERSION}name is predictable, a fork pull request using that name can make the check exit early even though the repository-owned bump has not been queued.Changes
Verification
Rebased onto current
devand re-ran the local gates on the rebased head871ae50:bun test tests/bump-dev-version.test.ts—10 pass, 1 skip, 0 fail, 39 expect() calls(Bun 1.4.0). The single skip is the platform-conditional unwritable-target case.bun run typecheck(bun x tsc --noEmit) — clean, no diagnostics.git diff --checkandgit diff 330d6c4..HEAD --check— clean, no whitespace errors.871ae50has currentdev330d6c4as its parent, is exactly 1 commit ahead ofdev, and touches exactly 2 files (.github/workflows/dev-version-bump.yml,tests/bump-dev-version.test.ts).git hash-objecta47ac52before and after), and the patch ID is still the reviewedcc096d7.Checklist
No documentation or release-note change is needed because this is a release-workflow guard correction with focused regression coverage.
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.
Summary by CodeRabbit