Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
should check for Autograding Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkeshan committed Dec 5, 2023
1 parent e276193 commit cacf9d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/notify-classroom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cacf9d4

Please sign in to comment.