def add_repo(name, description=None, homepage=None, private=None, has_issues=None, has_wiki=None, has_downloads=None, auto_init=None, gitignore_template=None, license_template=None, profile='github'):
 try:
  client = _get_client(profile)
  organization = client.get_organization(_get_config_value(profile, 'org_name'))
  given_params = {'description': description, 'homepage': homepage, 'private': private, 'has_issues': has_issues, 'has_wiki': has_wiki, 'has_downloads': has_downloads, 'auto_init': auto_init, 'gitignore_template': gitignore_template, 'license_template': license_template}
  parameters = {'name': name}
  for (param_name, param_value) in six.iteritems(given_params):
   if (param_value is not None):
    parameters[param_name] = param_value
  organization._requester.requestJsonAndCheck('POST', (organization.url + '/repos'), input=parameters)
  return True
 except github.GithubException as e:
  log.exception('Error creating a repo: {0}'.format(str(e)))
  return False

def add_repo ( name , description = None , homepage = None , private = None , has_issues = None , has_wiki = None , has_downloads = None , auto_init = None , gitignore_template = None , license_template = None , profile = 'github' ) : try : client = _get_client ( profile ) organization = client . get_organization ( _get_config_value ( profile , 'org_name' ) ) given_params = { 'description' : description , 'homepage' : homepage , 'private' : private , 'has_issues' : has_issues , 'has_wiki' : has_wiki , 'has_downloads' : has_downloads , 'auto_init' : auto_init , 'gitignore_template' : gitignore_template , 'license_template' : license_template } parameters = { 'name' : name } for ( param_name , param_value ) in six . iteritems ( given_params ) : if ( param_value is not None ) : parameters [ param_name ] = param_value organization . _requester . requestJsonAndCheck ( 'POST' , ( organization . url + '/repos' ) , input = parameters ) return True except github . GithubException as e : log . exception ( 'Error creating a repo: {0}' . format ( str ( e ) ) ) return False
add an xbps repository to the system .