Skip to content

Commit f898707

Browse files
authored
Merge pull request #639 from Shitanshukumar607/fix-issur-sync-pr-yml
Fix indentation in PR issue sync workflow
2 parents 32af870 + 3210df5 commit f898707

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 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,6 +32,7 @@ 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: |
3637
const issues = JSON.parse(`${{ steps.extract.outputs.issues }}`);
3738
const prNumber = context.payload.pull_request.number;
@@ -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)