diff --git a/.github/workflows/pr-issue-sync.yml b/.github/workflows/pr-issue-sync.yml index e3162538..008af731 100644 --- a/.github/workflows/pr-issue-sync.yml +++ b/.github/workflows/pr-issue-sync.yml @@ -17,7 +17,7 @@ jobs: id: extract uses: actions/github-script@v7 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | const body = context.payload.pull_request.body || ""; const issuePattern = /#(\d+)/g; @@ -32,6 +32,7 @@ jobs: if: steps.extract.outputs.issues && steps.extract.outputs.issues != '[]' uses: actions/github-script@v7 with: + github-token: ${{ secrets.GITHUB_TOKEN }} script: | const issues = JSON.parse(`${{ steps.extract.outputs.issues }}`); const prNumber = context.payload.pull_request.number; @@ -77,7 +78,6 @@ jobs: const existingComment = comments.data.find(c => c.body.includes("### Synced data from Linked Issues")); if (existingComment) { - // Update existing comment await github.rest.issues.updateComment({ ...context.repo, comment_id: existingComment.id,