This script is all you need to keep the all-in-makingwaves
group include all of the makingwaves
org's members.
Useful when everyone should have access to a repo.
node add-users.js my.user
That's all. You can optionally pre-set the password as an environment variable to avoid typing it in when prompted:
read -s GITHUB_PASS
export GITHUB_PASS
Endpoint: https://api.github.com
Basic usage: curl https://hostname/api/v3/ -u username:password
REST calls
GET /orgs/:org/members
PUT /teams/:id/members/:username
# read password
read -s GITHUB_PASS
# get all members
curl https://api.github.com/orgs/makingwaves/members -u fatso83:$GITHUB_PASS > members.json
#get all teams
curl https://api.github.com/orgs/makingwaves/teams -u fatso83:$GITHUB_PASS > teams.json
# id of all-in-makingwaves = 1830664