class Github::Issues
def list(*args)
:direction => 'asc'
:sort => 'comments',
:labels => "bug,ui,bla",
:mentioned => 'octocat',
:assignee => '*',
:state => 'open',
github.issues.list_repo :milestone => 1,
github = Github.new :user => 'user-name', :repo => 'repo-name'
:direction => 'asc'
:sort => 'comments',
:labels => "bug,ui,bla",
:state => 'open',
:filter => 'created',
github.issues.list :since => '2011-04-12T12:12:12Z',
github = Github.new :oauth_token => '...'
= Examples
format: YYYY-MM-DDTHH:MM:SSZ
:since - Optional string of a timestamp in ISO 8601
:direction - asc, desc, default: desc
default: created
:sort - created, updated, comments,
:mentioned String User login
* * for Issues with any assigned User.
* none for Issues with no assigned User.
* String User login
:assignee
Example: bug,ui,@high
:labels - String list of comma separated Label names.
:state - open, closed, default: open
* * for Issues with any Milestone
* none for Issues with no Milestone.
* Integer Milestone number
:milestone
* all All issues the user can see
* subscribed Issues you've subscribed to updates for
* mentioned Issues mentioning you
* created Issues created by you
* assigned Issues assigned to you (default)
:filter
= Parameters
github.issues.list :user => 'user-name', :repo => 'repo-name'
github = Github.new
= Example
List issues for a repository
github.issues.list :org => 'org-name'
github = Github.new :oauth_token => '...'
= Example
List all issues for a given organization for the authenticated user.
github.issues.list :user
github = Github.new :oauth_token => '...'
= Example
authenticated user.
List all issues across owned and member repositories for the
github.issues.list
github = Github.new :oauth_token => '...'
= Example
and organization repositories.
including owned repositories, member repositories,
List all issues across all the authenticated user’s visible repositories
List your issues
def list(*args) params = args.extract_options! normalize! params # filter! VALID_ISSUE_PARAM_NAMES, params # _merge_mime_type(:issue, params) # assert_valid_values(VALID_ISSUE_PARAM_VALUES, params) response = if (org = params.delete('org')) get_request("/orgs/#{org}/issues", params) elsif (user_name = params.delete('user')) && (repo_name = params.delete('repo')) list_repo user_name, repo_name, params elsif args.include? :user get_request("/user/issues", params) else get_request("/issues", params) end return response unless block_given? response.each { |el| yield el } end