From 8d4cb78ab0a338431d7a289a68761e1132238ae1 Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Tue, 20 Nov 2018 15:41:53 -0600 Subject: [PATCH] Support auto pagination in org_projects This allows the `auto_paginate` setting on the Client object to work with `org_projects` and prevents people from having to paginate manually even when using auto pagination. --- lib/octokit/client/projects.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/octokit/client/projects.rb b/lib/octokit/client/projects.rb index 0a1303d8f..2df3f8a04 100644 --- a/lib/octokit/client/projects.rb +++ b/lib/octokit/client/projects.rb @@ -51,7 +51,7 @@ def create_project(repo, name, options = {}) # @client.org_projects("octokit") def org_projects(org, options = {}) opts = ensure_api_media_type(:projects, options) - get "orgs/#{org}/projects", opts + paginate "orgs/#{org}/projects", opts end alias :organization_projects :org_projects