Skip to content

Commit bae53cf

Browse files
committed
Merge remote-tracking branch 'upstream/master' into secret-scanning-custom-patterns-repo
2 parents 27a3a43 + ed10621 commit bae53cf

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

github/classroom.go

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ func (g AssignmentGrade) String() string {
107107
// returned if the current user is an administrator of the GitHub Classroom
108108
// for the assignment.
109109
//
110-
// GitHub API docs: https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#get-an-assignment
110+
// Deprecated: This endpoint has been deprecated by GitHub.
111+
//
112+
// GitHub API docs: https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closing-down---get-an-assignment
111113
//
112114
//meta:operation GET /assignments/{assignment_id}
113115
func (s *ClassroomService) GetAssignment(ctx context.Context, assignmentID int64) (*ClassroomAssignment, *Response, error) {
@@ -130,7 +132,9 @@ func (s *ClassroomService) GetAssignment(ctx context.Context, assignmentID int64
130132
// GetClassroom gets a GitHub Classroom for the current user. Classroom will only be
131133
// returned if the current user is an administrator of the GitHub Classroom.
132134
//
133-
// GitHub API docs: https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#get-a-classroom
135+
// Deprecated: This endpoint has been deprecated by GitHub.
136+
//
137+
// GitHub API docs: https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closing-down---get-a-classroom
134138
//
135139
//meta:operation GET /classrooms/{classroom_id}
136140
func (s *ClassroomService) GetClassroom(ctx context.Context, classroomID int64) (*Classroom, *Response, error) {
@@ -153,7 +157,9 @@ func (s *ClassroomService) GetClassroom(ctx context.Context, classroomID int64)
153157
// ListClassrooms lists GitHub Classrooms for the current user. Classrooms will only be
154158
// returned if the current user is an administrator of one or more GitHub Classrooms.
155159
//
156-
// GitHub API docs: https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#list-classrooms
160+
// Deprecated: This endpoint has been deprecated by GitHub.
161+
//
162+
// GitHub API docs: https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closing-down---list-classrooms
157163
//
158164
//meta:operation GET /classrooms
159165
func (s *ClassroomService) ListClassrooms(ctx context.Context, opts *ListOptions) ([]*Classroom, *Response, error) {
@@ -179,7 +185,9 @@ func (s *ClassroomService) ListClassrooms(ctx context.Context, opts *ListOptions
179185
// ListClassroomAssignments lists GitHub Classroom assignments for a classroom. Assignments will only be
180186
// returned if the current user is an administrator of the GitHub Classroom.
181187
//
182-
// GitHub API docs: https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#list-assignments-for-a-classroom
188+
// Deprecated: This endpoint has been deprecated by GitHub.
189+
//
190+
// GitHub API docs: https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closing-down---list-assignments-for-a-classroom
183191
//
184192
//meta:operation GET /classrooms/{classroom_id}/assignments
185193
func (s *ClassroomService) ListClassroomAssignments(ctx context.Context, classroomID int64, opts *ListOptions) ([]*ClassroomAssignment, *Response, error) {
@@ -207,7 +215,9 @@ func (s *ClassroomService) ListClassroomAssignments(ctx context.Context, classro
207215
// Accepted assignments will only be returned if the current user is an administrator
208216
// of the GitHub Classroom for the assignment.
209217
//
210-
// GitHub API docs: https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#list-accepted-assignments-for-an-assignment
218+
// Deprecated: This endpoint has been deprecated by GitHub.
219+
//
220+
// GitHub API docs: https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closing-down---list-accepted-assignments-for-an-assignment
211221
//
212222
//meta:operation GET /assignments/{assignment_id}/accepted_assignments
213223
func (s *ClassroomService) ListAcceptedAssignments(ctx context.Context, assignmentID int64, opts *ListOptions) ([]*AcceptedAssignment, *Response, error) {
@@ -235,7 +245,9 @@ func (s *ClassroomService) ListAcceptedAssignments(ctx context.Context, assignme
235245
// Grades will only be returned if the current user is an administrator
236246
// of the GitHub Classroom for the assignment.
237247
//
238-
// GitHub API docs: https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#get-assignment-grades
248+
// Deprecated: This endpoint has been deprecated by GitHub.
249+
//
250+
// GitHub API docs: https://docs.github.com/rest/classroom/classroom?apiVersion=2022-11-28#closing-down---get-assignment-grades
239251
//
240252
//meta:operation GET /assignments/{assignment_id}/grades
241253
func (s *ClassroomService) GetAssignmentGrades(ctx context.Context, assignmentID int64) ([]*AssignmentGrade, *Response, error) {

0 commit comments

Comments
 (0)