Skip to content

Instantly share code, notes, and snippets.

View glaubernespoli's full-sized avatar

Glauber Néspoli glaubernespoli

View GitHub Profile
@glaubernespoli
glaubernespoli / add-team-to-repos.js
Created September 23, 2021 12:34 — forked from davidrleonard/add-team-to-repos.js
Add a new team to all Github repos in an organization
/*
* Adds a team to all the repos in a Github organization. This is a tedious
* process in the UI. You'll need a newer version of node to run this (e.g 9+)
* because it uses async/await.
*
* Instructions:
*
* 1. Copy this file somewhere on your computer, e.g. ~/addteamrepos.js
* 2. Fill in the uppercase variables below with the right values
* 3. Run this file: `$ node ~/addteamrepos.js`