This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Adds the specificed team to all the repos in a Github organization. | |
* This is a tedious process in the UI. | |
* You'll need a version of node greater than 9 to run this | |
* | |
* https://docs.github.com/en/rest/teams/teams#add-or-update-team-repository-permissions | |
* | |
* Instructions: | |
* 1. Copy this file somewhere locally on your computer, e.g. ~/addteamrepos.js | |
* 2. Fill in the uppercase variables below with the right values |