About editing assignments
After creating an assignment, you can edit many aspects of the assignment to better fit the needs of yourself and your students. Be aware that you cannot change the assignment type (either individual or group) or the online integrated development environment (IDE) after assignment creation. For more information, see "Create an individual assignment" and "Create a group assignment."
Editing an existing assignment
-
Sign into GitHub Classroom.
-
In the list of classrooms, click the classroom you want to view.
-
In the Assignments tab, next to the assignment you would like to edit, click .
Note
You can also edit an assignment from the assignment's page. To access the assignment's page, in the Assignments tab, click the assignment name.
-
Under "Assignment title," click in the text field, then delete the existing text and type the new assignment title.
-
Optionally, to edit the default prefix for each student's assignment repository, next to the name of the prefix, click .
Note
Editing an assignment's title or default repository prefix will not change the name of existing assignment repositories.
Then, type the new prefix under "Custom repository prefix."
-
Under "Deadline (optional)," click in the text field, then use the date picker to reassign a deadline. The new deadline cannot be in the past, and reassigning a deadline will update the deadline for all students.
Optionally, to make the deadline a cutoff date, select This is a cutoff date. If you use a cutoff date, students will lose write access to their assignment repositories after the cutoff date has passed unless they receive an extension. For more information on extending assignment deadlines, see "Extending an assignment's deadline for an individual or group."
-
To change the status of an assignment, select the Assignment status dropdown menu, then click Active or Inactive.
Note
Inactive assignments cannot be accepted by students. You should change an assignment status to inactive once no more students should accept an assignment or the assignment deadline has passed.
-
Under "Repository visibility," select a visibility. If you use private repositories, only the student or team can see the feedback you provide.
Note
Changing the visibility for assignment repositories will not retroactively change the visibility of existing assignment repositories.
-
Optionally, select or deselect Grant students admin access to their repository. For more information on admin permissions for repositories, see "About repositories" and "Repository roles for an organization."
Note
Granting or revoking student admin access after an assignment has been created will not retroactively change the permissions for existing assignment repositories.
-
To set up or change the template repository for your assignment, in the "Add a template repository to give students starter code" section, select the Select a repository dropdown menu.
- To choose a template repository, begin typing the repository name in the text field, then click the repository in the search results.
- To remove a template repository, delete any text in the text field.
You cannot change the template repository after a student has accepted the assignment. If you wish to provide updates to the starter code after students have accepted the assignment, see "Making changes to assignment starter code."
Note
By default, an assignment will create an empty repository for each student on the roster for the classroom.
-
To add a new autograding test, in the "Add autograding tests" section, select the Add test dropdown menu, then click a grading method from the options that appear. For more information, see "Use autograding."
Additionally, you can edit or delete existing autograding tests with or .
-
To add new protected path, in the "Protected file paths" section, type out the file or path and click Add path.
Additionally, delete existing protected paths by clicking .
Note
If you remove a protected file path, the "Protected file(s) modified" label will be removed from any submissions that edited files in that path
-
To turn feedback pull requests on or off, select or deselect Enable feedback pull requests.
Note
Enabling or disabling feedback pull requests for an assignment will not create or delete feedback pull requests for existing assignment repositories.
-
Click Update assignment.
Making changes to assignment starter code
If you need to update the starter code for your assignment after students have already accepted it, you can do so by modifying the original repository. Since student assignments are based on forks of this repository, you can make changes to the starter code and then create pull requests for students to merge these updates into their assignments. See, "Create an assignment from a template repository."
-
Sign into GitHub Classroom.
-
In the list of classrooms, click the classroom you want to view.
-
Select the assignment that has a starter code repository.
-
Below the title of the assignment, click the link to your starter code repository.
-
Make the necessary changes to your starter code's content.
-
Return to the assignment overview page.
-
Click Sync assignments. If changes are detected, an Assignments are out of date button will be shown.
-
To open pull requests in all of your students' assignment repositories, click Assignments are out of date.
The pull requests will be titled "GitHub Classroom: Sync Assignment". Ask your students to merge these pull requests.