You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ci): auto-merge 머지 시 linked 이슈 자동 close 누락 수정 #38
auto-merge.yml 가 PR 을 머지해도 closes #N 으로 연결된 이슈가 자동 종료되지 않는다 (#31·#34·#35 모두 수동 close 가 필요했음).
원인: 이슈 종료는 별도 워크플로 auto-close-issue.yml(트리거 pull_request: closed)이 담당하는데, auto-merge.yml 이 GITHUB_TOKEN 으로 머지한다. GitHub 은 GITHUB_TOKEN 이 일으킨 이벤트로는 다른 워크플로를 트리거하지 않으므로(재귀 실행 방지), 그 pull_request: closed 이벤트가 auto-close-issue.yml 을 발동시키지 못한다.
확증: auto-close-issue 실행 이력은 feat/24·feat/25(수동 머지 시절)뿐. auto-merge 도입 후 자동 머지된 PR 들에서는 한 번도 실행되지 않았음.
해결: auto-merge.yml 의 머지 스텝에서, 머지 성공 직후 해당 PR 의 closingIssuesReferences 를 조회해 같은 job 안에서 직접 이슈를 close 한다(동일 job 이라 GITHUB_TOKEN 캐스케이드 제약을 받지 않음). auto-close-issue.yml 은 수동 머지(UI) 경로용으로 유지.
📍 Note (Optional)
검증: GitHub Actions 워크플로는 로컬 실행 불가 → YAML 문법 검증 + 다음 auto-merge 머지에서 실제 동작 확인.
Activity
OnlyReadOneBook commentedon Jun 5, 2026
PR #39 머지로 main 반영 완료. 본 이슈는 fix 적용 전 워크플로로 머지되어 자동 종료되지 않아 수동 close. 다음 PR부터는 자동으로 닫힙니다.