Skip to content

Commit

Permalink
Merge pull request #618 from octokit/list-all-orgs
Browse files Browse the repository at this point in the history
Implement the new GET /organizations
  • Loading branch information
pengwynn committed Jun 25, 2015
2 parents de20fd4 + 4e8a5a4 commit 1e8b395
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
17 changes: 17 additions & 0 deletions lib/octokit/client/organizations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,23 @@ def organizations(user=nil, options = {})
alias :list_orgs :organizations
alias :orgs :organizations

# List all GitHub organizations
#
# This provides a list of every organization, in the order that they
# were created.
#
# @param options [Hash] Optional options.
# @option options [Integer] :since The integer ID of the last
# Organization that you’ve seen.
#
# @see https://developer.github.com/v3/orgs/#list-all-organizations
#
# @return [Array<Sawyer::Resource>] List of GitHub organizations.
def all_organizations(options = {})
paginate "organizations"
end
alias :all_orgs :all_organizations

# List organization repositories
#
# Public repositories are available without authentication. Private repos
Expand Down
2 changes: 1 addition & 1 deletion lib/octokit/client/users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Users

# List all GitHub users
#
# This provides a dump of every user, in the order that they signed up
# This provides a list of every user, in the order that they signed up
# for GitHub.
#
# @param options [Hash] Optional options.
Expand Down
Loading

0 comments on commit 1e8b395

Please sign in to comment.