module Octokit::Client::Issues

def list_issues(repository = nil, options = {})

Other tags:
    Example: List issues for the authenticated user across repositories -
    Example: List issues for a repository -

Other tags:
    See: https://developer.github.com/v3/issues/#list-issues -
    See: https://developer.github.com/v3/issues/#list-issues-for-a-repository -

Returns:
  • (Array) - A list of issues for a repository.

Options Hash: (**options)
  • :page (Integer) -- Page number.
  • :direction (String) -- Direction: asc or desc.
  • :sort (String) -- Sort: created, updated, or comments.
  • :labels (String) -- List of comma separated Label names. Example: bug,ui,@high.
  • :mentioned (String) -- User login.
  • :creator (String) -- User login.
  • :assignee (String) -- User login.
  • :state (String) -- State: open, closed, or all.
  • :milestone (Integer) -- Milestone number.

Parameters:
  • options (Sawyer::Resource) -- A customizable set of options.
  • repository (Integer, String, Repository, Hash) -- A GitHub repository.
def list_issues(repository = nil, options = {})
  path = repository ? "#{Repository.new(repository).path}/issues" : 'issues'
  paginate path, options
end