fix(pr-pass): handle UNKNOWN mergeStateStatus from already-merged PRs - #562
Merged
Conversation
baleen37
enabled auto-merge (squash)
March 19, 2026 00:05
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe changes enhance PR verification by reading the PR state from GitHub API and adding early exits for merged or closed states. UNKNOWN is treated as a distinct state, and documentation is updated to guide handling of these edge cases. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
baleen-release-app Bot
pushed a commit
that referenced
this pull request
Mar 19, 2026
## [6.0.1](v6.0.0...v6.0.1) (2026-03-19) ### Bug Fixes * **pr-pass:** handle UNKNOWN mergeStateStatus from already-merged PRs ([#562](#562)) ([3886518](3886518))
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.
Summary
verify-pr-status.sh가mergeStateStatus=UNKNOWN일 때 PR이 이미 머지됐는지 확인하지 않고 exit 1로 빠지는 문제를 수정합니다.Changes
plugins/me/skills/create-pr/scripts/verify-pr-status.sh:state필드 추가 조회 —MERGED면 exit 0,CLOSED면 exit 1,OPEN+UNKNOWN이면 exit 2(CI pending)로 처리.UNKNOWNmergeStateStatus를BLOCKED|UNSTABLE과 같이 분류.plugins/me/skills/pr-pass/SKILL.md: 진단 명령에state필드 추가,UNKNOWN상태 해석 가이드 명시.Tests
모든 state 조합(MERGED/CLOSED/OPEN+UNKNOWN/OPEN+BLOCKED)에 대해 exit code와 출력 메시지 검증 완료.
Summary by CodeRabbit
Bug Fixes
Documentation