Repository navigation
feat: auto-merge 워크플로에 연결된 이슈 자동 종료 기능 추가 - #39
Merged
Merged
Conversation
- GITHUB_TOKEN을 사용한 머지 시 `pull_request:closed` 이벤트가 발생해도 다른 워크플로가 트리거되지 않는 제약을 해결하기 위해 직접 이슈 종료 로직 추가 - 워크플로 권한에 `issues: write` 추가 - PR 머지 성공 후 연결된 이슈(`closingIssuesReferences`)를 조회하여 `gh issue close`를 호출하도록 수정
OnlyReadOneBook
pushed a commit
that referenced
this pull request
Oct 14, 2026
feat: auto-merge 워크플로에 연결된 이슈 자동 종료 기능 추가
OnlyReadOneBook
pushed a commit
that referenced
this pull request
Oct 14, 2026
feat: auto-merge 워크플로에 연결된 이슈 자동 종료 기능 추가
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.
📌𝘐𝘴𝘴𝘶𝘦𝘴
📎𝘞𝘰𝘳𝘬 𝘋𝘦𝘴𝘤𝘳𝘪𝘱𝘵𝘪𝘰𝘯
closes #N으로 연결된 이슈가 자동 종료되지 않던 문제 수정.auto-close-issue.yml(트리거pull_request: closed)이,auto-merge.yml의GITHUB_TOKEN머지로는 발동하지 않음 — GitHub 은GITHUB_TOKEN이 일으킨 이벤트로 다른 워크플로를 트리거하지 않기 때문(재귀 실행 방지). 확증:auto-close-issue실행 이력이 수동 머지 시절(feat/24·feat/25)뿐.auto-merge.yml머지 스텝에서 머지 직후 PR 의closingIssuesReferences를 조회해 같은 job 안에서 직접gh issue close호출. 워크플로 권한에issues: write추가.auto-close-issue.yml은 수동 머지(UI) 경로용으로 존치.📷𝘚𝘤𝘳𝘦𝘦𝘯𝘴𝘩𝘰𝘵
CI/워크플로 변경 — UI 무관, 캡처 없음.
💬𝘛𝘰 𝘙𝘦𝘷𝘪𝘦𝘸𝘦𝘳𝘴
gh pr view --json closingIssuesReferences --jq ...가 실제 이슈 번호 반환) 동작 확인까지 검증. 실동작은 다음 PR auto-merge 에서 확인.workflow_run은 default branch 의 워크플로를 사용하므로 이 fix 는 본 PR 머지 후부터 적용됨 → fix(ci): auto-merge 머지 시 linked 이슈 자동 close 누락 수정 #38 자체는 자동 close 가 안 되어 머지 후 수동 close 필요(그 다음 PR 부터 자동).