Closed
Description
with:
script: const labels = context.payload.pull_request.labels.map(label => label.name);
if (!labels.includes('skip-issue-check')) {
const issueLink = context.payload.pull_request.body.match(/https:\/\/github\.com\/\S+\/issues\/\d+/);
if (!issueLink) {
core.setFailed('No associated issue found in the PR description.');
}
}
github-token: ***
debug: false
user-agent: actions/github-script
result-encoding: json
retries: 0
retry-exempt-status-codes: 400,401,40[3](https://github.com/microsoft/vscode-python/actions/runs/14136879606/job/39612074046#step:5:3),404,422
TypeError: Cannot read properties of null (reading 'match')
at eval (eval at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:35[4](https://github.com/microsoft/vscode-python/actions/runs/14136879606/job/39612074046#step:5:4)24:16), <anonymous>:5:55)
at callAsyncFunction (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:3[5](https://github.com/microsoft/vscode-python/actions/runs/14136879606/job/39612074046#step:5:5)425:12)
at main (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:35522:26)
at /home/runner/work/_actions/actions/github-script/v7/dist/index.js:35497:1
at /home/runner/work/_actions/actions/github-script/v7/dist/index.js:35553:3
at Object.<anonymous> (/home/runner/work/_actions/actions/github-script/v7/dist/index.js:3555[6](https://github.com/microsoft/vscode-python/actions/runs/14136879606/job/39612074046#step:5:6):12)
at Module._compile (node:internal/modules/cjs/loader:1529:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1613:10)
at Module.load (node:internal/modules/cjs/loader:12[7](https://github.com/microsoft/vscode-python/actions/runs/14136879606/job/39612074046#step:5:7)5:32)
at Module._load (node:internal/modules/cjs/loader:1096:12)