From f6d59f42096db6e05c0e1a47c1919d379a0de574 Mon Sep 17 00:00:00 2001 From: nrslib <38722970+nrslib@users.noreply.github.com> Date: Sat, 28 Feb 2026 13:06:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20cc-resolve=20=E3=81=AE=20checkout=20?= =?UTF-8?q?=E5=89=8D=E3=82=B9=E3=83=86=E3=83=83=E3=83=97=E3=81=AB=20--repo?= =?UTF-8?q?=20=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cc-resolve.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cc-resolve.yml b/.github/workflows/cc-resolve.yml index 0c2cb3e..ea08332 100644 --- a/.github/workflows/cc-resolve.yml +++ b/.github/workflows/cc-resolve.yml @@ -22,7 +22,7 @@ jobs: run: | gh api repos/${{ github.repository }}/issues/comments/${{ github.event.comment.id }}/reactions \ -f content=rocket - gh pr comment ${{ github.event.issue.number }} \ + gh pr comment ${{ github.event.issue.number }} --repo ${{ github.repository }} \ --body "🚀 cc-resolve started: [View logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -30,7 +30,7 @@ jobs: - name: Get PR branch id: pr run: | - echo "branch=$(gh pr view ${{ github.event.issue.number }} --json headRefName -q .headRefName)" >> "$GITHUB_OUTPUT" + echo "branch=$(gh pr view ${{ github.event.issue.number }} --repo ${{ github.repository }} --json headRefName -q .headRefName)" >> "$GITHUB_OUTPUT" env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -220,9 +220,9 @@ jobs: PR_NUMBER=${{ github.event.issue.number }} RUN_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" if [ "${{ job.status }}" = "success" ]; then - gh pr comment "$PR_NUMBER" --body "✅ cc-resolve completed. [View logs](${RUN_URL})" + gh pr comment "$PR_NUMBER" --repo ${{ github.repository }} --body "✅ cc-resolve completed. [View logs](${RUN_URL})" else - gh pr comment "$PR_NUMBER" --body "❌ cc-resolve failed. [View logs](${RUN_URL})" + gh pr comment "$PR_NUMBER" --repo ${{ github.repository }} --body "❌ cc-resolve failed. [View logs](${RUN_URL})" fi env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}