github-helpers
v0.1.1
Published
bulk team management &c
Downloads
1
Readme
github-helpers
bulk team management &c
Installation
npm install -g github-helpers
Be sure the node
exists, if not create a symbolic link to nodejs
Usage
github-helpers is limited to viewing and the bulk management of a GitHub organization's
- members
- teams
- team members
Credentials
You must authenticate with a GitHub username and password that has access to the target organization. Provide credentials with either command line options or environment variables.
# command line
github-helpers -u you -p secret {cmd}
# env vars (BASH/ZSH/&c)
export GITHUB_USERNAME="you"
export GITHUB_PASSWORD="secret"
github-helpers {cmd}
...
Examples
# list teams belonging to an organization
github-helpers teams BlueAcornInc
# list members belonging to an organization
github-helpers members BlueAcornInc
# list members belonging to a team ("developers")
github-helpers members BlueAcornInc developers
# add all members of BlueAcornInc to "developers" team
github-helpers bulkmembership BlueAcornInc developers
# add "developers" team as collaborator on all repositories in BlueAcornInc
github-helpers bulkcollaboration BlueAcornInc developers
TODO
- remove redundancy && callback pyramid of doom