Repository navigation
ci(review): Viewed 가 풀린 PR 의 자동 머지 예약과 merge queue 등록을 해제한다 (#2252) - #2253
Merged
Merged
Conversation
Contributor
|
형제 충돌이 해소됐다 — 지금은 이 PR 과 같은 파일을 서로 다르게 고친 열린 PR 이 없다 (#1750). |
OnlyReadOneBook
marked this pull request as ready for review
October 5, 2026 05:45
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.
📌𝘐𝘴𝘴𝘶𝘦𝘴
📎𝘞𝘰𝘳𝘬 𝘋𝘦𝘴𝘤𝘳𝘪𝘱𝘵𝘪𝘰𝘯
DISMISSED·UNVIEWED가 되어도 판정 스크립트는 이미 예약된 PR 을 건너뛰었고, develop 룰셋은 push 로 승인을 지우지 않아 다시 보지 않은 커밋이 그대로 머지될 수 있었다.decideViewedAutoMergeCancel을 더했다. 예약(autoMergeRequest)이 있거나 큐에 있는 PR 중 전체 파일이VIEWED가 아니거나 파일 목록을 다 못 읽은 PR 을cancels로 내보낸다. 승인·Draft·작성자는 따지지 않는다.gh pr merge --disable-auto(disablePullRequestAutoMerge), 큐는 GraphQLdequeuePullRequest로 푼다. 해제가 하나라도 실패하면 job 을 red 로 남기고, 예약 단계는 해제 단계 결과와 무관하게 돈다.Sync auto-merge with Viewed state로 바꿨다(스케줄 실행 job 이라 required check 와 무관).검증
node --test .github/scripts/find-viewed-auto-merge-targets.test.mjs13/13 통과(새 테스트 7건). 해제 판정의 Viewed 분기를 일부러 깨면 3건이 실패하는 것을 확인했다.node --test .github/scripts/*.test.mjs812/812 통과.main()을 돌려 예약 대상·해제 대상(예약만, 예약+큐) 출력을 확인하고, 해제 단계 셸을 가짜gh로 돌려 예약 해제가 실패해도 큐 해제를 시도한 뒤 exit 1 로 끝나는 것을 확인했다.🧪 CI Test Plan
{ "androidTest": { "mode": "none", "reason": "`.github/workflows/viewed-auto-merge.yml` 과 `.github/scripts` 의 판정 스크립트·테스트만 바꾼다. 앱 코드와 계측 테스트 대상 화면이 없다.", "tests": [] } }📷𝘚𝘤𝘳𝘦𝘦𝘯𝘴𝘩𝘰𝘵
화면 변경 없음
💬𝘛𝘰 𝘙𝘦𝘷𝘪𝘦𝘸𝘦𝘳𝘴
Generated by Claude Code