From 81f1a16f79a52e91a4cb02d4a86858919d61e603 Mon Sep 17 00:00:00 2001 From: Dale Seo <5466341+DaleSeo@users.noreply.github.com> Date: Sun, 28 Jun 2026 23:09:24 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=A7=A4=EC=B9=AD=20=EC=9D=B4=EB=A0=A5?= =?UTF-8?q?=20PR=20=EC=9E=90=EB=8F=99=20=EB=A8=B8=EC=A7=80=20=EB=B0=8F=20?= =?UTF-8?q?=EC=9E=98=EB=AA=BB=EB=90=9C=206/29=20=EC=A4=91=EB=B3=B5=20?= =?UTF-8?q?=EA=B8=B0=EB=A1=9D=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 매칭 결과 Discord 발표는 자동인 반면 이력 저장은 수동 머지 PR이라, 직전 PR(#72)이 방치된 상태에서 6/29 cron이 stale history로 실행되어 스케줄을 무시하고 직전과 동일하게 재매칭되는 문제가 있었다. - match.yml: PR 생성 직후 gh pr merge로 즉시 머지하여 다음 cron 전에 history가 main에 반영되도록 변경 (ruleset 승인 0개라 즉시 머지 가능) - coffee/coffee-ui: 오작동으로 생성된 6/29 중복 기록 제거 --- .github/workflows/match.yml | 7 +++++-- data/coffee-ui/history.json | 8 -------- data/coffee/history.json | 7 ------- 3 files changed, 5 insertions(+), 17 deletions(-) diff --git a/.github/workflows/match.yml b/.github/workflows/match.yml index 102d181..1767da8 100644 --- a/.github/workflows/match.yml +++ b/.github/workflows/match.yml @@ -44,7 +44,7 @@ jobs: - name: Format generated files run: bun run format - - name: Create Pull Request + - name: Create and merge Pull Request env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | @@ -56,4 +56,7 @@ jobs: git diff --staged --quiet && exit 0 git commit -m "chore: update match history" git push -u origin "$BRANCH_NAME" - gh pr create --fill --body "자동 생성된 커피챗 매칭 히스토리 업데이트입니다." + PR_URL=$(gh pr create --fill --body "자동 생성된 커피챗 매칭 히스토리 업데이트입니다.") + # 다음 매칭 cron 전에 history가 main에 반영되도록 즉시 머지한다. + # 머지가 지연되면 stale history로 인해 재매칭/동일매칭이 발생한다. + gh pr merge "$PR_URL" --squash --delete-branch diff --git a/data/coffee-ui/history.json b/data/coffee-ui/history.json index 32b914e..adf7a70 100644 --- a/data/coffee-ui/history.json +++ b/data/coffee-ui/history.json @@ -74,14 +74,6 @@ ["299178466996256778", "701107097659506699"], ["913798074957172777", "960173224937812099"] ] - }, - { - "date": "2026-06-29", - "pairs": [ - ["267646459187298305", "1065143836562698291", "840925933538902016"], - ["960173224937812099", "913798074957172777"], - ["299178466996256778", "701107097659506699"] - ] } ] } diff --git a/data/coffee/history.json b/data/coffee/history.json index 44eafc6..264309b 100644 --- a/data/coffee/history.json +++ b/data/coffee/history.json @@ -178,13 +178,6 @@ ], ["1351517352356876342", "710532131171860510", "857282069994799105"] ] - }, - { - "date": "2026-06-29", - "pairs": [ - ["710532131171860510", "748456575655739432", "267646459187298305"], - ["432043985335222284", "1351517352356876342", "857282069994799105"] - ] } ] }