diff --git a/.github/workflows/pull-request-commentor.yaml b/.github/workflows/pull-request-commentor.yaml index 3176288e7b4..eaf85e44bee 100644 --- a/.github/workflows/pull-request-commentor.yaml +++ b/.github/workflows/pull-request-commentor.yaml @@ -119,7 +119,7 @@ jobs: with: script: | github.rest.issues.removeLabel({ - issue_number: github.event.pull_request.number, + issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, name: ["ok-to-test"]