def get_issues(repo_name=None, profile='github', milestone=None, state='open', assignee=None, creator=None, mentioned=None, labels=None, sort='created', direction='desc', since=None, output='min', per_page=None):
 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])
 args = {}
 if milestone:
  args['milestone'] = milestone
 if assignee:
  args['assignee'] = assignee
 if creator:
  args['creator'] = creator
 if mentioned:
  args['mentioned'] = mentioned
 if labels:
  args['labels'] = labels
 if since:
  args['since'] = since
 if per_page:
  args['per_page'] = per_page
 if (state and (state != 'open')):
  args['state'] = state
 if (sort and (sort != 'created')):
  args['sort'] = sort
 if (direction and (direction != 'desc')):
  args['direction'] = direction
 ret = {}
 issues = _query(profile, action=action, command='issues', args=args)
 for issue in issues:
  if issue.get('pull_request'):
   continue
  issue_id = issue.get('id')
  if (output == 'full'):
   ret[issue_id] = issue
  else:
   ret[issue_id] = _format_issue(issue)
 return ret

def get_issues ( repo_name = None , profile = 'github' , milestone = None , state = 'open' , assignee = None , creator = None , mentioned = None , labels = None , sort = 'created' , direction = 'desc' , since = None , output = 'min' , per_page = None ) : 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 ] ) args = { } if milestone : args [ 'milestone' ] = milestone if assignee : args [ 'assignee' ] = assignee if creator : args [ 'creator' ] = creator if mentioned : args [ 'mentioned' ] = mentioned if labels : args [ 'labels' ] = labels if since : args [ 'since' ] = since if per_page : args [ 'per_page' ] = per_page if ( state and ( state != 'open' ) ) : args [ 'state' ] = state if ( sort and ( sort != 'created' ) ) : args [ 'sort' ] = sort if ( direction and ( direction != 'desc' ) ) : args [ 'direction' ] = direction ret = { } issues = _query ( profile , action = action , command = 'issues' , args = args ) for issue in issues : if issue . get ( 'pull_request' ) : continue issue_id = issue . get ( 'id' ) if ( output == 'full' ) : ret [ issue_id ] = issue else : ret [ issue_id ] = _format_issue ( issue ) return ret
get a list of the issues from the github api .