module Github::Orgs::Teams
def edit_team(team_name, params={})
"permission" => "push"
"name" => "new team name",
@github.orgs.edit_team 'team-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
:name - Required string
= Inputs
In order to edit a team, the authenticated user must be an owner of the org that the team is associated with.
Create a team
def edit_team(team_name, params={}) _validate_presence_of team_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) patch("/teams/#{team_name}", params) end