From c89cd52b2fc60dadd5fa9bdfbc8d04508cbaed1a Mon Sep 17 00:00:00 2001 From: Shitanshu Kumar Date: Wed, 1 Oct 2025 14:28:19 +0530 Subject: [PATCH 1/2] Fix indentation in PR issue sync workflow --- .github/workflows/pr-issue-sync.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-issue-sync.yml b/.github/workflows/pr-issue-sync.yml index e3162538..34b29abd 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,8 +32,9 @@ 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 issues = JSON.parse(process.env.ISSUES); const prNumber = context.payload.pull_request.number; let combinedLabels = []; @@ -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, From 3210df54374e1d06369d2c008af53da5916bf16c Mon Sep 17 00:00:00 2001 From: Shitanshu Kumar Date: Wed, 1 Oct 2025 14:31:02 +0530 Subject: [PATCH 2/2] fix --- .github/workflows/pr-issue-sync.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-issue-sync.yml b/.github/workflows/pr-issue-sync.yml index 34b29abd..008af731 100644 --- a/.github/workflows/pr-issue-sync.yml +++ b/.github/workflows/pr-issue-sync.yml @@ -34,7 +34,7 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - const issues = JSON.parse(process.env.ISSUES); + const issues = JSON.parse(`${{ steps.extract.outputs.issues }}`); const prNumber = context.payload.pull_request.number; let combinedLabels = [];