Skip to content

Commit c89cd52

Browse files
Fix indentation in PR issue sync workflow
1 parent f60f26b commit c89cd52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/pr-issue-sync.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
id: extract
1818
uses: actions/github-script@v7
1919
with:
20-
github-token: ${{ secrets.GITHUB_TOKEN }}
20+
github-token: ${{ secrets.GITHUB_TOKEN }}
2121
script: |
2222
const body = context.payload.pull_request.body || "";
2323
const issuePattern = /#(\d+)/g;
@@ -32,8 +32,9 @@ jobs:
3232
if: steps.extract.outputs.issues && steps.extract.outputs.issues != '[]'
3333
uses: actions/github-script@v7
3434
with:
35+
github-token: ${{ secrets.GITHUB_TOKEN }}
3536
script: |
36-
const issues = JSON.parse(`${{ steps.extract.outputs.issues }}`);
37+
const issues = JSON.parse(process.env.ISSUES);
3738
const prNumber = context.payload.pull_request.number;
3839
3940
let combinedLabels = [];
@@ -77,7 +78,6 @@ jobs:
7778
const existingComment = comments.data.find(c => c.body.includes("### Synced data from Linked Issues"));
7879
7980
if (existingComment) {
80-
// Update existing comment
8181
await github.rest.issues.updateComment({
8282
...context.repo,
8383
comment_id: existingComment.id,

0 commit comments

Comments
 (0)