Skip to content

Instantly share code, notes, and snippets.

@aculich
Created June 23, 2021 01:10
Show Gist options
  • Select an option

  • Save aculich/aa364f6e21f433a255cd207770b71b26 to your computer and use it in GitHub Desktop.

Select an option

Save aculich/aa364f6e21f433a255cd207770b71b26 to your computer and use it in GitHub Desktop.
Add D-Lab Team members
# brew install hub jq
### Create a list of github usernames in a file and then:
for i in `cat curriculum-development`; do hub api --flat orgs/dlab-berkeley/teams/curriculum-development/memberships/$i -X PUT; done
### see docs in: https://docs.github.com/en/rest/reference/teams#add-or-update-team-membership-for-a-user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment