Skip to content

Instantly share code, notes, and snippets.

@MisaKondo
Created March 17, 2014 06:49
Show Gist options
  • Save MisaKondo/9594958 to your computer and use it in GitHub Desktop.
Save MisaKondo/9594958 to your computer and use it in GitHub Desktop.
OrganizationのMemberの取得とか登録あたり適度に自動化したいので、作成中
API=https://api.github.com
ORG=$(shell org.txt)
TOKEN=$(shell cat token.txt)
TEAM=$(shell cat team.txt)
TEAM_ID=$(shell cat team_id.txt)
NEW_MEMBER=
teams_list:
curl -X GET -H "Authorization: token $(TOKEN)" $(API)/orgs/$(ORG)/teams
members_list:
curl -X GET -H "Authorization: token $(TOKEN)" $(API)/teams/$(TEAM_ID)/members
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment