Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/pr-issue-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Copy link

Copilot AI Oct 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code references process.env.ISSUES but this environment variable is not defined in the workflow. The original approach using ${{ steps.extract.outputs.issues }} should be maintained, or an env block should be added to define the ISSUES variable.

Copilot uses AI. Check for mistakes.
const prNumber = context.payload.pull_request.number;

let combinedLabels = [];
Expand Down Expand Up @@ -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,
Expand Down
Loading