New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added .user_issues method to Issues #215

merged 2 commits into from Feb 8, 2013
Jump to file or symbol
Failed to load files and symbols.
+741 −0
Diff settings


Just for now


Added .user_issues method to Issues

Which lists all issues across owned and member repositories for the
authenticated user.
  • Loading branch information...
andrew committed Feb 8, 2013
commit ac8249b2126b6db36be9d10607b2d3e64ae3184f
@@ -43,6 +43,26 @@ def list_issues(repository = nil, options={})
alias :issues :list_issues
# List all issues across owned and member repositories for the authenticated user
# @param options [Hash] A customizable set of options.
# @option options [String] :filter (assigned) State: <tt>assigned</tt>, <tt>created</tt>, <tt>mentioned</tt>, <tt>subscribed</tt> or <tt>closed</tt>.
# @option options [String] :state (open) State: <tt>open</tt> or <tt>all</tt>.
# @option options [String] :labels List of comma separated Label names. Example: <tt>bug,ui,@high</tt>.
# @option options [String] :sort (created) Sort: <tt>created</tt>, <tt>updated</tt>, or <tt>comments</tt>.
# @option options [String] :direction (desc) Direction: <tt>asc</tt> or <tt>desc</tt>.
# @option options [Integer] :page (1) Page number.
# @option options [String] :since Timestamp in ISO 8601
# @return [Array] A list of issues for a repository.
# @see
# @example List issues for the authenticted user across owned and member repositories
# @client = => 'foo', :password => 'bar')
# @client.user_issues
def user_issues(options={})
get('/user/issues', options)
# Create an issue for a repository
# @param repo [String, Repository, Hash] A GitHub repository
Oops, something went wrong.
ProTip! Use n and p to navigate between commits in a pull request.