diff --git a/.github/workflows/main-issue.yml b/.github/workflows/main-issue.yml index 8f9c976..be4b9d8 100644 --- a/.github/workflows/main-issue.yml +++ b/.github/workflows/main-issue.yml @@ -15,11 +15,13 @@ jobs: - uses: actions/github-script@v7 with: script: | + console.log("The full event context:", JSON.stringify(context, null, 2)); + const repo = context.repo.repo; const owner = context.repo.owner; const pr = context.payload.pull_request; const newLabels = ['internal/main'] - const releaseLabel = pr.head.labels.find(label => label.name.startsWith('release/v')); + const releaseLabel = pr.labels.find(label => label.name.startsWith('release/v')); if (releaseLabel) { const versionLabel = releaseLabel.name.replace('release/', 'version/'); newLabels.push(versionLabel)