Skip to main content

assignment_accepted_assignments

Creates, updates, deletes, gets or lists an assignment_accepted_assignments resource.

Overview

Nameassignment_accepted_assignments
TypeResource
Idgithub.classroom.assignment_accepted_assignments

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
idintegerUnique identifier of the repository.
assignmentobjectA GitHub Classroom assignment (title: Simple Classroom Assignment)
commit_countintegerCount of student commits.
gradestringMost recent grade. (example: 10/10)
passingbooleanWhether a submission passed.
repositoryobjectA GitHub repository view for Classroom (title: Simple Classroom Repository)
studentsarray
submittedbooleanWhether an accepted assignment has been submitted.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_accepted_assignments_for_an_assignmentselectassignment_idpage, per_pageLists any assignment repositories that have been created by students accepting a GitHub Classroom assignment. Accepted assignments will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
assignment_idintegerThe unique identifier of the classroom assignment.
pageintegerThe page number of the results to fetch. For more information, see "Using pagination in the REST API."
per_pageintegerThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

SELECT examples

Lists any assignment repositories that have been created by students accepting a GitHub Classroom assignment. Accepted assignments will only be returned if the current user is an administrator of the GitHub Classroom for the assignment.

SELECT
id,
assignment,
commit_count,
grade,
passing,
repository,
students,
submitted
FROM github.classroom.assignment_accepted_assignments
WHERE assignment_id = '{{ assignment_id }}' -- required
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
;