module Github::Orgs::Teams
def create_team(org_name, params={})
]
"github/dotfiles"
"repo_names" => [
"permission" => "push",
"name" => "new team",
@github.orgs.create_team 'org-name',
@github = Github.new :oauth_token => '...'
= Examples
* admin - team members can pull, push and administor these repositories.
* push - team members can pull and push, but not administor this repositores.
* pull - team members can pull, but not push or administor this repositories. Default
:permission - Optional string
:repo_names - Optional array of strings
:name - Required string
= Inputs
In order to create a team, the authenticated user must be an owner of:org.
Create a team
def create_team(org_name, params={}) _validate_presence_of org_name _normalize_params_keys(params) _filter_params_keys(VALID_TEAM_PARAM_NAMES, params) _validate_params_values(VALID_TEAM_PARAM_VALUES, params) raise ArgumentError, "Required params are: :name" unless _validate_inputs(%w[ name ], params) post("/orgs/#{org_name}/teams", params) end