Skip to content

Remind before a merge when the pull request closes no issue - #787

Merged
yansfil merged 1 commit into
mainfrom
feat/premerge-issue-note
Oct 8, 2026
Merged

yansfil merged 1 commit into
mainfrom
feat/premerge-issue-note

Conversation

@yansfil

@yansfil yansfil commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Related: yansfil/sasu#30 (/ship merge가 이 검사를 매 머지마다 돌리고 출력을 보여 주게 하는 쪽)

Summary

Hide와 GitHub은 PR과 이슈를 Closes #N 같은 closing keyword로만 잇는데, 10-06~07에 이슈를 끝낸 PR 7개(#607 #612 #614 #622 #631 #634 #712)가 이 줄 없이 머지됐고 이슈는 손으로 닫혀 연결이 남지 않았습니다.
이제 scripts/premerge-check.py가 닫는 이슈가 없는 PR에 머지 명령 바로 위에서 알림을 한 줄 찍습니다.
막지는 않습니다. 이슈 없이 시작한 PR(PRD 작업, CI·문서 변경)도 많기 때문입니다.

note: #454 closes no issue. If it finishes one, put `Closes #<issue>` on the body's Closes line before merging (editing the body does not rerun `verify`); with no issue, merge as it is.
#454 may merge now: gh pr merge 454 --merge --match-head-commit a1eda76c...

Review

  • 판단해 주세요: 알림만 하고 막지 않는 수준이 맞는지. 막으려면 "이슈 없음"을 PR 본문에 명시하는 규칙이 따로 필요합니다.

Evidence

  • 확인한 것: 실제 PR로 실행. 이슈를 닫는 #781에는 알림 없음, 닫는 이슈가 없는 #454에는 위 알림이 찍히고 머지 가능 판정은 그대로.
  • 확인한 것: test_premerge_check.py에 알림 유무 테스트 1개 추가, scripts/tests 206개 통과, check-no-attribution 통과.
  • 확인하지 못한 것: PR을 만드는 순간의 알림은 없습니다. 머지 직전에만 알려서, 그때 본문을 고치는 흐름입니다.

Hide and GitHub relate a pull request to an issue only through a closing keyword, and seven pull requests on 2026-10-06 and 10-07 finished an issue without one, so their issues were closed by hand and never linked. The pre-merge check now prints a note above the merge command; it never refuses, since some pull requests finish no issue.
@yansfil
yansfil merged commit 6472cb3 into main Oct 8, 2026
14 checks passed
@yansfil
yansfil deleted the feat/premerge-issue-note branch October 8, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant