Skip to main content

Редактирование назначения

Вы можете изменить существующие задания в своем курсе.

Кто эту функцию можно использовать?

Organization owners who are admins for a classroom can edit assignments for that classroom. Дополнительные сведения об администраторах аудитории см. в разделе "Управление аудиториями".

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. In the list of classrooms, click the classroom you want to view.

  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.

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

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

  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.

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

  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.

  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.

  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.

  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.

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

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

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

  14. Click Update assignment.

Further reading