From cacf9d4b4c4fe08537606de769d0c914a18adf3a Mon Sep 17 00:00:00 2001 From: Ashish Keshan Date: Tue, 5 Dec 2023 14:43:55 -0800 Subject: [PATCH] should check for Autograding Tests --- src/notify-classroom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/notify-classroom.js b/src/notify-classroom.js index 5544e0f7..797b99e6 100644 --- a/src/notify-classroom.js +++ b/src/notify-classroom.js @@ -41,11 +41,11 @@ exports.NotifyClassroom = async function NotifyClassroom (runnerResults) { const checkRunsResponse = await octokit.rest.checks.listForRepo({ owner, repo, - check_name: 'Autograding' + check_name: 'Autograding Tests' }) - // Filter to find the check run named "Autograding" for the specific workflow run ID - const checkRun = checkRunsResponse.data.check_runs.find(cr => cr.name === 'Autograding' && cr.check_suite.workflow_run_id === runId) + // Filter to find the check run named "Autograding Tests" for the specific workflow run ID + const checkRun = checkRunsResponse.data.check_runs.find(cr => cr.name === 'Autograding Tests' && cr.check_suite.workflow_run_id === runId) if (!checkRun) return