def get_issue(issue_number, repo_name=None, profile='github', output='min'):
 org_name = _get_config_value(profile, 'org_name')
 if (repo_name is None):
  repo_name = _get_config_value(profile, 'repo_name')
 action = '/'.join(['repos', org_name, repo_name])
 command = ('issues/' + str(issue_number))
 ret = {}
 issue_data = _query(profile, action=action, command=command)
 issue_id = issue_data.get('id')
 if (output == 'full'):
  ret[issue_id] = issue_data
 else:
  ret[issue_id] = _format_issue(issue_data)
 return ret

def get_issue ( issue_number , repo_name = None , profile = 'github' , output = 'min' ) : org_name = _get_config_value ( profile , 'org_name' ) if ( repo_name is None ) : repo_name = _get_config_value ( profile , 'repo_name' ) action = '/' . join ( [ 'repos' , org_name , repo_name ] ) command = ( 'issues/' + str ( issue_number ) ) ret = { } issue_data = _query ( profile , action = action , command = command ) issue_id = issue_data . get ( 'id' ) if ( output == 'full' ) : ret [ issue_id ] = issue_data else : ret [ issue_id ] = _format_issue ( issue_data ) return ret
return information about a single issue in a named repository .