Bulk move student repos to another organisation #138336
Replies: 1 comment 3 replies
-
Hi there! It seems like the main issue is related to the “insufficient collaborator seats” error in the For the forked repos (Example 1), GitHub doesn’t allow changing the visibility of a fork for security reasons, and it also restricts transferring repositories that are forks. You might want to look into using the parent repo (CP1404/starter_a1_books) directly or consider deleting the fork and re-creating the repo in the For non-forked repos (Example 2), if you’re hitting the collaborator seat limit as well, fixing the seat availability issue should resolve both manual and API-based transfers. Since you’re working with a large number of repos, once the collaborator seats are increased, the bulk transfer tool should work fine for non-forked repos. For the forked ones, you may need to explore alternative methods like re-creating or renaming. Hope this helps, and good luck with the transfers! |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
Hi.
I have hundreds of student assignment repos in my staff organisation (CP1404) that I want to move to the org I usually use for student work (cp1404-students).
I think I made a mistake when selecting the org to use when I created the GitHub Classroom assignment.
I'm not sure if it's related to my other issue with recent assignments (https://github.com/orgs/community/discussions/132182)
I'm trying to use this tool https://github.com/jdbean/github-api-bulk-transfer but getting errors.
When I try and manually move the repos, I get similar errors, so it's probably not the tool or the API.
Here's the situation:
Example 1
Private repo forked from CP1404/starter_a1_books:
In the GitHub web UI in settings, I see:
When I run the API tool for this, the error message is:
I can confirm that the student owner of this repo IS an "outside collaborator" in the destination org, cp1404-students.
Example 2
Private repo, but NOT forked:
In the UI, I DO see the option to transfer. When I try it I get the same error as the API one below.
When I run the API tool for this, the error message is (a bit different from example 1):
I can confirm that the student owner of this repo IS an "outside collaborator" in the destination org, cp1404-students.
I have hundreds of these and, a) don't want to do it manually, b) don't even know how to do it manually!
So... what must I do?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions