Skip to content

Chocrates/tools

Folders and files

NameName
Last commit message
Last commit date
Jan 20, 2022
Sep 28, 2021
Feb 16, 2022
Jul 12, 2022
Oct 11, 2021
Apr 27, 2021
Apr 27, 2021
Jun 1, 2021
Apr 19, 2021
Apr 16, 2021
Jul 13, 2022
Sep 28, 2021
Jul 13, 2022
Jul 9, 2022
Jul 13, 2022
Jul 13, 2022
Nov 2, 2021
Mar 26, 2021

Repository files navigation

Tools

This repository holds a number of scripts to assist in administering and migrating GitHub repositories and Organizations Most deal diredtly with the GitHub API.

Scripts

  • 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 example due-on: 2021-04-28
  • 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