def add_team(name, description=None, repo_names=None, privacy=None, permission=None, profile='github'):
 try:
  client = _get_client(profile)
  organization = client.get_organization(_get_config_value(profile, 'org_name'))
  parameters = {}
  parameters['name'] = name
  if (description is not None):
   parameters['description'] = description
  if (repo_names is not None):
   parameters['repo_names'] = repo_names
  if (permission is not None):
   parameters['permission'] = permission
  if (privacy is not None):
   parameters['privacy'] = privacy
  organization._requester.requestJsonAndCheck('POST', (organization.url + '/teams'), input=parameters)
  list_teams(ignore_cache=True)
  return True
 except github.GithubException as e:
  log.exception('Error creating a team: {0}'.format(str(e)))
  return False

def add_team ( name , description = None , repo_names = None , privacy = None , permission = None , profile = 'github' ) : try : client = _get_client ( profile ) organization = client . get_organization ( _get_config_value ( profile , 'org_name' ) ) parameters = { } parameters [ 'name' ] = name if ( description is not None ) : parameters [ 'description' ] = description if ( repo_names is not None ) : parameters [ 'repo_names' ] = repo_names if ( permission is not None ) : parameters [ 'permission' ] = permission if ( privacy is not None ) : parameters [ 'privacy' ] = privacy organization . _requester . requestJsonAndCheck ( 'POST' , ( organization . url + '/teams' ) , input = parameters ) list_teams ( ignore_cache = True ) return True except github . GithubException as e : log . exception ( 'Error creating a team: {0}' . format ( str ( e ) ) ) return False
create a new github team within an organization .