From 087ec3888fd3dce208fd45067b6147a90acdac20 Mon Sep 17 00:00:00 2001 From: Kenneth Seet <120318851+itstrueitstrueitsrealitsreal@users.noreply.github.com> Date: Sun, 28 Jul 2024 13:55:31 +0800 Subject: [PATCH] Update pr.yml --- .github/workflows/pr.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 80c9e301f1f..24dd404e370 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -32,10 +32,10 @@ jobs: let isIssueOpen = false if (issueNumber) { const issue = await github.rest.issues.get({ - owner: context.repo.owner, - repo: context.repo.repo, + owner: 'TEAMMATES', + repo: 'teammates', issue_number: issueNumber - }); + }) isIssueOpen = issue.data.state === 'open' if (isTitleValid && isDescriptionValid && isIssueOpen) { return