def get_repo_info(repo_name, profile='github', ignore_cache=False):
 org_name = _get_config_value(profile, 'org_name')
 key = 'github.{0}:{1}:repo_info'.format(_get_config_value(profile, 'org_name'), repo_name.lower())
 if ((key not in __context__) or ignore_cache):
  client = _get_client(profile)
  try:
   repo = client.get_repo('/'.join([org_name, repo_name]))
   if (not repo):
    return {}
   ret = _repo_to_dict(repo)
   __context__[key] = ret
  except github.UnknownObjectException:
   raise CommandExecutionError("The '{0}' repository under the '{1}' organization could not be found.".format(repo_name, org_name))
 return __context__[key]

def get_repo_info ( repo_name , profile = 'github' , ignore_cache = False ) : org_name = _get_config_value ( profile , 'org_name' ) key = 'github.{0}:{1}:repo_info' . format ( _get_config_value ( profile , 'org_name' ) , repo_name . lower ( ) ) if ( ( key not in __context__ ) or ignore_cache ) : client = _get_client ( profile ) try : repo = client . get_repo ( '/' . join ( [ org_name , repo_name ] ) ) if ( not repo ) : return { } ret = _repo_to_dict ( repo ) __context__ [ key ] = ret except github . UnknownObjectException : raise CommandExecutionError ( "The '{0}' repository under the '{1}' organization could not be found." . format ( repo_name , org_name ) ) return __context__ [ key ]
return information for a given repo .