ci: access issue number from payload

This commit is contained in:
Daniel Roe 2024-09-11 10:04:37 +01:00
parent f561bab575
commit 37fec6d711
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -20,7 +20,7 @@ jobs:
// add 'pending triage' label if issue is created with no labels
if (context.payload.issue.labels.length === 0) {
github.rest.issues.addLabels({
issue_number: issue.number,
issue_number: context.payload.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['pending triage']