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.
+742 −0
Diff settings


Just for now

Viewing a subset of changes. View all

Added .org_issues method

Which lists all issues for a given organization for the authenticated
  • Loading branch information...
andrew committed Feb 8, 2013
commit 29c3b258417d86604551da94092e82dfe5d4c336
@@ -62,6 +62,27 @@ def list_issues(repository = nil, options={})
def user_issues(options={})
get('/user/issues', options)
# List all issues for a given organization for the authenticated user
# @param org [String] Organization GitHub username.
# @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 org_issues(org, options={})
get("/orgs/#{org}/issues", options)
# Create an issue for a repository
Oops, something went wrong.
ProTip! Use n and p to navigate between commits in a pull request.