Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR file check fails with Cannot read properties of null (reading 'match') #24938

Closed
karthiknadig opened this issue Mar 28, 2025 · 0 comments · Fixed by #24939
Closed

PR file check fails with Cannot read properties of null (reading 'match') #24938

karthiknadig opened this issue Mar 28, 2025 · 0 comments · Fixed by #24939
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team

Comments

@karthiknadig
Copy link
Member

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)
@karthiknadig karthiknadig added feature-request Request for new features or functionality bug Issue identified by VS Code Team member as probable bug and removed feature-request Request for new features or functionality labels Mar 28, 2025
@karthiknadig karthiknadig self-assigned this Mar 28, 2025
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant