This repository holds a number of scripts to assist in administering and migrating GitHub repositories and Organizations Most deal diredtly with the GitHub API.
- create-repos-from-template
- Creates repos for a list of users based on a template and gives a team admin access to them
- get-issues
- Gets issues with the label
due-on: todays_date
, for exampledue-on: 2021-04-28
- Gets issues with the label
- get-org-invitations
- Python example of calling the API with requests, gets org invitations
- pygit-auth-refresh
- PyGit sample that will watch for expired App Tokens and refresh them
- remove-protections
- Removes branch protections from the default branch for all repos starting with prefix
- search-org-repos
- Takes in a code search query and finds all repos and collaborators with hits
- Useful if you need to track down a bunch of repos with data and you need to contact their owners
- transfer-organization
- Transfers all repos in the file to the new org and opens a PR changing all references from the old org to the new org
- delete-repositories
- Takes a CSV file of owner/repo's and deletes them