4

I have an assignment that was already accepted by some of the students and I need to update it.

I updated the assignment template.

How can students now merge the updates into their repositories? (I need to have the students merge the changes to their repositories themselves).

I can't find instructions on how to do this anywhere. There are instructions on how to update the assignment configuration but that doesn't update the student repositories.

I have a student test account with which I tried to set the template assignment repository as a remote but it can't find it (maybe because it's private, but I can't make it public).

traveh
  • 2,700
  • 3
  • 27
  • 44

1 Answers1

1

I got the same problem recently. It seems that there's no offical method provided, and here's what I think could be a solution:

  1. Download classroom roster from Github Classroom. Identifier and corresponding Github username are included in the roster.
  2. Find all assignment-relevant repositories in the Github organization. You can use Github API api.github.com/orgs/ORG/repos to get all repositories in the organization and filter them by assignment_name-github_username and maybe created_at attribute if previous assignments with the same name exist.
  3. Merge/PR your update to all repos found in step 2 respectively. You can run a simple script locally to finish the step, since you have full permission for all the repos.
uniform64
  • 11
  • 1