Skip to content

Instantly share code, notes, and snippets.

View rmateu-pricesmart's full-sized avatar

Roberto Mateu rmateu-pricesmart

View GitHub Profile
@davidrleonard
davidrleonard / add-team-to-repos.js
Last active April 9, 2024 18:49
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`
@SemVerTsar
SemVerTsar / update_teams
Last active January 25, 2022 00:09
Using GitHub's API to manage a team's access to repos.
#!/usr/bin/env python
# http://pygithub3.readthedocs.org/en/latest/
# Pip install pygithub3
from pygithub3 import Github
token = '<your GitHub application token>'
# Teams