Skip to main content

Editing an assignment

You can edit existing assignments in your course.

Who can use this feature

Organization owners who are admins for a classroom can edit assignments for that classroom. For more information on classroom admins, see "About management of classrooms."

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

  1. Sign into GitHub Classroom.

  2. Navigate to a classroom.

    Screenshot of a classroom tile in GitHub Education with the classroom name emphasized

  3. 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.

    Screenshot of an assignment with emphasis on the edit icon

  4. Under "Assignment title," click in the text field, then delete the existing text and type the new assignment title.

    Screenshot of the assignment editor with emphasis on the "Assignment title" text field

  5. Optionally, to edit the default prefix for each student's assignment repository, click .

    Note: Editing an assignment's title or default repository prefix will not change the name of existing assignment repositories.

    Screenshot of the assignment editor with emphasis on the edit icon for student repository prefixes

    Then, type the new prefix under "Custom repository prefix."

    Screenshot of the assignment editor with emphasis on the "Custom repository prefix" text field

  6. 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.

    Screenshot of the assignment editor with emphasis on the "Deadline (optional)" field

  7. 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.

    Screenshot of the assignment editor with emphasis on the "Assignment status" dropdown menu

  8. 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.

    Screenshot of the assignment editor with emphasis on the "Repository visibility" radio buttons

  9. 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.

    Screenshot of the assignment editor with emphasis on the "Grant students admin access to their repository" checkbox

  10. 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.

    Note: By default, an assignment will create an empty repository for each student on the roster for the classroom.

    Screenshot of the assignment editor with emphasis on the "Select a repository" dropdown

  11. To add a new autograding test, in the "Add autograding tests" section, select the Add test drop-down menu, then click a grading method from the options that appear. For more information, see "Use autograding."

    Screenshot of the assignment editor with emphasis on the "Add test" dropdown

    Additionally, you can edit or delete existing autograding tests with or .

    Screenshot of the assignment editor with emphasis on the edit test and delete test icons

  12. 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.

    Screenshot of the assignment editor with emphasis on the "Enable feedback pull requests" checkbox

  13. Click Update assignment. Screenshot of the "Update assignment" button at the bottom of the page

Further reading