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

Commit

Permalink
rename integration -> autograding
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkeshan committed Dec 6, 2023
1 parent 66e5c47 commit 82d9740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permissions:
actions: read
contents: read
jobs:
integration:
autograding:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
12 changes: 1 addition & 11 deletions src/notify-classroom.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ exports.NotifyClassroom = async function NotifyClassroom (runnerResults) {
if (Number.isNaN(runId)) return

// Fetch the workflow run
console.log(`Check owner: ${owner}`)
console.log(`Check repo: ${repo}`)
console.log(`Check runId: ${runId}`)
const workflowRunResponse = await octokit.rest.actions.getWorkflowRun({
owner,
repo,
Expand All @@ -59,19 +56,12 @@ exports.NotifyClassroom = async function NotifyClassroom (runnerResults) {
const checkRunsResponse = await octokit.rest.checks.listForSuite({
owner,
repo,
check_name: 'integration',
check_name: 'autograding',
check_suite_id: checkSuiteId,
})

console.log(`Check checkRunsResponse: ${checkRunsResponse.data.total_count}`)

// List check runs for the repository
// const checkRunsResponse = await octokit.rest.checks.listForRef({
// owner,
// repo,
// check_name: 'Autograding Tests'
// })

// Filter to find the check run named "Autograding Tests" for the specific workflow run ID
const checkRun = checkRunsResponse.data.total_count === 1 && checkRunsResponse.data.check_runs[0]
console.log(`Check run: ${checkRun}`)
Expand Down

0 comments on commit 82d9740

Please sign in to comment.