fix(release): ignore fork PRs in dev bump guard - #3325
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks 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 |
|
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. This PR stays in draft until every box above is ticked. |
|
@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이 작성했습니다 |
55b1dcd to
bc47fc9
Compare
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 |
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
bun test tests/bump-dev-version.test.ts— 10 pass, 1 platform-conditional skip, 0 fail, 39 assertions.e0491c4has currentdev8b60e4cas its parent and preserves the reviewed patch IDcc096d7.git diff HEAD^..HEAD --check— clean.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.