Skip to content

Latest commit

 

History

History
 
 

README.md

scripts

add-users-to-team-from-list.sh

Invites users to a GitHub team from a list.

  1. Create a new csv file with the users you want to add, 1 per line
  2. Make sure to leave a trailing line at the end of the csv
  3. Run: ./add-users-to-team-from-list.sh users.csv <org> <team>

ado_workitems_to_github_issues.ps1

Migrate work items from Azure DevOps to GitHub issues - this just links out to a separate repo

delete-branch-protection-rules.ps1

Delete branch protection rules programmatically based on a pattern.

delete-repos-from-list.sh

  1. Run: ./generate-repos-list.sh <org> > repos.csv
  2. Clean up the repos.csv file and remove the repos you don't want to delete
  3. Run ./delete-repos-from-list.sh repos.csv
  4. If you need to restore, you have 90 days to restore

generate-repos-list.sh

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

  1. Run: ./generate-repos.sh <org> > repos.csv

update-repo-visibility-from-server-to-cloud.ps1

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.

verify-team-membership.sh

Simple script to verify that a user is a member of a team