Invites users to a GitHub team from a list.
- Create a new csv file with the users you want to add, 1 per line
- Make sure to leave a trailing line at the end of the csv
- Run:
./add-users-to-team-from-list.sh users.csv <org> <team>
Migrate work items from Azure DevOps to GitHub issues - this just links out to a separate repo
Delete branch protection rules programmatically based on a pattern.
- Run:
./generate-repos-list.sh <org> > repos.csv - Clean up the
repos.csvfile and remove the repos you don't want to delete - Run
./delete-repos-from-list.sh repos.csv - If you need to restore, you have 90 days to restore
Generates a list of repos in the organization - has many uses, but the exported repos can be used in the delete-repos-from-list.sh script.
Credits to @tspascoal from this repo: https://github.com/tspascoal/dependabot-alerts-helper
- Run:
./generate-repos.sh <org> > repos.csv
Compares the repo visibility of a repo in GitHub Enterprise Server and update the visibility in GitHub Enterprise Cloud. This is useful since migrated repos are always brought into cloud as private.
Simple script to verify that a user is a member of a team