def get_issue_comments(issue_number, repo_name=None, profile='github', since=None, 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 = '/'.join(['issues', str(issue_number), 'comments'])
 args = {}
 if since:
  args['since'] = since
 comments = _query(profile, action=action, command=command, args=args)
 ret = {}
 for comment in comments:
  comment_id = comment.get('id')
  if (output == 'full'):
   ret[comment_id] = comment
  else:
   ret[comment_id] = {'id': comment.get('id'), 'created_at': comment.get('created_at'), 'updated_at': comment.get('updated_at'), 'user_login': comment.get('user').get('login')}
 return ret

def get_issue_comments ( issue_number , repo_name = None , profile = 'github' , since = None , 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 = '/' . join ( [ 'issues' , str ( issue_number ) , 'comments' ] ) args = { } if since : args [ 'since' ] = since comments = _query ( profile , action = action , command = command , args = args ) ret = { } for comment in comments : comment_id = comment . get ( 'id' ) if ( output == 'full' ) : ret [ comment_id ] = comment else : ret [ comment_id ] = { 'id' : comment . get ( 'id' ) , 'created_at' : comment . get ( 'created_at' ) , 'updated_at' : comment . get ( 'updated_at' ) , 'user_login' : comment . get ( 'user' ) . get ( 'login' ) } return ret
return information about the comments for a given issue in a named repository .