From ce32d7482f834ece7c37a4f6d8b29bae72c75f60 Mon Sep 17 00:00:00 2001 From: Ashish Keshan Date: Wed, 6 Dec 2023 12:51:39 -0800 Subject: [PATCH] try listForRef --- src/notify-classroom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notify-classroom.js b/src/notify-classroom.js index 128b49e..294124a 100644 --- a/src/notify-classroom.js +++ b/src/notify-classroom.js @@ -42,7 +42,7 @@ exports.NotifyClassroom = async function NotifyClassroom (runnerResults) { if (Number.isNaN(runId)) return // List check runs for the repository - const checkRunsResponse = await octokit.rest.checks.listForRepo({ + const checkRunsResponse = await octokit.rest.checks.listForRef({ owner, repo, check_name: 'Autograding Tests'