From cc5d7cec5dfead3beed8ea371aa3b6aedadf20e0 Mon Sep 17 00:00:00 2001 From: Omkar Khatavkar Date: Wed, 14 Feb 2024 00:46:40 +0530 Subject: [PATCH] Update push_event.yml --- .github/workflows/push_event.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/push_event.yml b/.github/workflows/push_event.yml index dfe47931188..645fdbaa9d8 100644 --- a/.github/workflows/push_event.yml +++ b/.github/workflows/push_event.yml @@ -15,8 +15,8 @@ jobs: script: | const prNumber = ${{ github.event.number }}; const issue = await github.rest.issues.get({ - owner: context.issue.owner, - repo: context.issue.repo, + owner: github.context.repo.owner, + repo: github.context.repo.repo, issue_number: prNumber, }); const labelsToRemove = ['PRT-Failed', 'PRT-Passed']; @@ -25,8 +25,8 @@ jobs: await Promise.all(labelsToRemoveFiltered.map(async label => { await github.rest.issues.removeLabel({ issue_number: prNumber, - owner: context.repo.owner, - repo: context.repo.repo, + owner: github.context.repo.owner, + repo: github.context.repo.repo, name: label }); }));