{"action":"created","issue":{"url":"https://api.github.com/repos/octokit/octokit.rb/issues/803","repository_url":"https://api.github.com/repos/octokit/octokit.rb","labels_url":"https://api.github.com/repos/octokit/octokit.rb/issues/803/labels{/name}","comments_url":"https://api.github.com/repos/octokit/octokit.rb/issues/803/comments","events_url":"https://api.github.com/repos/octokit/octokit.rb/issues/803/events","html_url":"https://github.com/octokit/octokit.rb/pull/803","id":180279041,"number":803,"title":"Allow manual concat for auto paginated resources","user":{"login":"sclinede","id":3530391,"avatar_url":"https://avatars.githubusercontent.com/u/3530391?v=3","gravatar_id":"","url":"https://api.github.com/users/sclinede","html_url":"https://github.com/sclinede","followers_url":"https://api.github.com/users/sclinede/followers","following_url":"https://api.github.com/users/sclinede/following{/other_user}","gists_url":"https://api.github.com/users/sclinede/gists{/gist_id}","starred_url":"https://api.github.com/users/sclinede/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sclinede/subscriptions","organizations_url":"https://api.github.com/users/sclinede/orgs","repos_url":"https://api.github.com/users/sclinede/repos","events_url":"https://api.github.com/users/sclinede/events{/privacy}","received_events_url":"https://api.github.com/users/sclinede/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-09-30T11:12:15Z","updated_at":"2016-11-15T06:17:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/octokit/octokit.rb/pulls/803","html_url":"https://github.com/octokit/octokit.rb/pull/803","diff_url":"https://github.com/octokit/octokit.rb/pull/803.diff","patch_url":"https://github.com/octokit/octokit.rb/pull/803.patch"},"body":"I'm working under open-source analytic tool and need to process huge projects via octokit. Auto pagination feature works great and even has feature to concat results manually.\nBut we cannot use it right from resource request.\nI was forced to write dirty hook over pagination method to use it. I think it make sence to provide such feature without additional movements in side code. It can also save memory a lot in case of big projects.\nNow we can use it like that:\n\n``` ruby\nOctokit.auto_paginate = true\n\nopen_issues = []\nfirst_page_data = Octokit.issues 'rails/rails' do |_, next_page|\n  next_page.data.each do |issue|\n    open_issues << issue if issue[:state] == 'open'\n  end\nend\nfirst_page_data.each do |issue|\n  open_issues << issue if issue[:state] == 'open'\nend\n\nopen_issues.length\n\n```\n"},"comment":{"url":"https://api.github.com/repos/octokit/octokit.rb/issues/comments/260557254","html_url":"https://github.com/octokit/octokit.rb/pull/803#issuecomment-260557254","issue_url":"https://api.github.com/repos/octokit/octokit.rb/issues/803","id":260557254,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2016-11-15T06:17:53Z","updated_at":"2016-11-15T06:17:53Z","body":"\n[![Coverage Status](https://coveralls.io/builds/8826342/badge)](https://coveralls.io/builds/8826342)\n\nCoverage increased (+0.07%) to 99.394% when pulling **279a3cad50bfe692435847b7bc4980716021bc73 on sclinede:feat/block-pagination** into **78ce00bd751096909e2af1caaf655f2997561545 on octokit:master**.\n"}}
{"actor":{"display_login":"coveralls"}}