{"action":"created","comment":{"url":"https://api.github.com/repos/vermiculus/sx.el/pulls/comments/22433611","id":22433611,"diff_hunk":"@@ -92,16 +92,52 @@ number of requests left every time it finishes a call.\"\n   :group 'sx\n   :type 'integer)\n \n+(defvar sx-request-all-items-delay\n+  1\n+  \"Delay in seconds with each `sx-request-all-items' iteration.\n+It is good to use a reasonable delay to avoid rate-limiting.\")\n+\n \f\n ;;; Making Requests\n+(defun sx-request-all-items (method &optional args request-method\n+                                    stop-when)\n+  \"Call METHOD with ARGS until there are no more items.\n+STOP-WHEN is a function that takes the entire response and\n+returns non-nil if the process should stop.\n+\n+All other arguments are identical to `sx-request-make', but\n+PROCESS-FUNCTION is given the default value of `identity' (rather\n+than `sx-request-response-get-items') to allow STOP-WHEN to\n+access the response wrapper.\"\n+  ;; @TODO: Refactor.  This is the product of a late-night jam\n+  ;; session...  it is not intended to be model code.","path":"sx-request.el","position":22,"original_position":22,"commit_id":"63dcca1acd08c0d103196a5d35a581d5380d3717","original_commit_id":"63dcca1acd08c0d103196a5d35a581d5380d3717","user":{"login":"Bruce-Connor","id":453029,"avatar_url":"https://avatars.githubusercontent.com/u/453029?v=3","gravatar_id":"","url":"https://api.github.com/users/Bruce-Connor","html_url":"https://github.com/Bruce-Connor","followers_url":"https://api.github.com/users/Bruce-Connor/followers","following_url":"https://api.github.com/users/Bruce-Connor/following{/other_user}","gists_url":"https://api.github.com/users/Bruce-Connor/gists{/gist_id}","starred_url":"https://api.github.com/users/Bruce-Connor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bruce-Connor/subscriptions","organizations_url":"https://api.github.com/users/Bruce-Connor/orgs","repos_url":"https://api.github.com/users/Bruce-Connor/repos","events_url":"https://api.github.com/users/Bruce-Connor/events{/privacy}","received_events_url":"https://api.github.com/users/Bruce-Connor/received_events","type":"User","site_admin":false},"body":"Thanks for the warning. :-)","created_at":"2015-01-03T17:42:34Z","updated_at":"2015-01-03T17:42:34Z","html_url":"https://github.com/vermiculus/sx.el/pull/187#discussion_r22433611","pull_request_url":"https://api.github.com/repos/vermiculus/sx.el/pulls/187","_links":{"self":{"href":"https://api.github.com/repos/vermiculus/sx.el/pulls/comments/22433611"},"html":{"href":"https://github.com/vermiculus/sx.el/pull/187#discussion_r22433611"},"pull_request":{"href":"https://api.github.com/repos/vermiculus/sx.el/pulls/187"}}},"pull_request":{"url":"https://api.github.com/repos/vermiculus/sx.el/pulls/187","id":26750523,"html_url":"https://github.com/vermiculus/sx.el/pull/187","diff_url":"https://github.com/vermiculus/sx.el/pull/187.diff","patch_url":"https://github.com/vermiculus/sx.el/pull/187.patch","issue_url":"https://api.github.com/repos/vermiculus/sx.el/issues/187","number":187,"state":"open","locked":false,"title":"Get all items","user":{"login":"vermiculus","id":2082195,"avatar_url":"https://avatars.githubusercontent.com/u/2082195?v=3","gravatar_id":"","url":"https://api.github.com/users/vermiculus","html_url":"https://github.com/vermiculus","followers_url":"https://api.github.com/users/vermiculus/followers","following_url":"https://api.github.com/users/vermiculus/following{/other_user}","gists_url":"https://api.github.com/users/vermiculus/gists{/gist_id}","starred_url":"https://api.github.com/users/vermiculus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vermiculus/subscriptions","organizations_url":"https://api.github.com/users/vermiculus/orgs","repos_url":"https://api.github.com/users/vermiculus/repos","events_url":"https://api.github.com/users/vermiculus/events{/privacy}","received_events_url":"https://api.github.com/users/vermiculus/received_events","type":"User","site_admin":false},"body":"Implement a means to get all pages of a method call. Can be used in `tag-bot`.","created_at":"2015-01-02T06:07:28Z","updated_at":"2015-01-03T17:42:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"caa4e32d90bd7bc1ff4cdfae20e3ae0b582b8746","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vermiculus/sx.el/pulls/187/commits","review_comments_url":"https://api.github.com/repos/vermiculus/sx.el/pulls/187/comments","review_comment_url":"https://api.github.com/repos/vermiculus/sx.el/pulls/comments/{number}","comments_url":"https://api.github.com/repos/vermiculus/sx.el/issues/187/comments","statuses_url":"https://api.github.com/repos/vermiculus/sx.el/statuses/63dcca1acd08c0d103196a5d35a581d5380d3717","head":{"label":"vermiculus:get-all","ref":"get-all","sha":"63dcca1acd08c0d103196a5d35a581d5380d3717","user":{"login":"vermiculus","id":2082195,"avatar_url":"https://avatars.githubusercontent.com/u/2082195?v=3","gravatar_id":"","url":"https://api.github.com/users/vermiculus","html_url":"https://github.com/vermiculus","followers_url":"https://api.github.com/users/vermiculus/followers","following_url":"https://api.github.com/users/vermiculus/following{/other_user}","gists_url":"https://api.github.com/users/vermiculus/gists{/gist_id}","starred_url":"https://api.github.com/users/vermiculus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vermiculus/subscriptions","organizations_url":"https://api.github.com/users/vermiculus/orgs","repos_url":"https://api.github.com/users/vermiculus/repos","events_url":"https://api.github.com/users/vermiculus/events{/privacy}","received_events_url":"https://api.github.com/users/vermiculus/received_events","type":"User","site_admin":false},"repo":{"id":8457408,"name":"sx.el","full_name":"vermiculus/sx.el","owner":{"login":"vermiculus","id":2082195,"avatar_url":"https://avatars.githubusercontent.com/u/2082195?v=3","gravatar_id":"","url":"https://api.github.com/users/vermiculus","html_url":"https://github.com/vermiculus","followers_url":"https://api.github.com/users/vermiculus/followers","following_url":"https://api.github.com/users/vermiculus/following{/other_user}","gists_url":"https://api.github.com/users/vermiculus/gists{/gist_id}","starred_url":"https://api.github.com/users/vermiculus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vermiculus/subscriptions","organizations_url":"https://api.github.com/users/vermiculus/orgs","repos_url":"https://api.github.com/users/vermiculus/repos","events_url":"https://api.github.com/users/vermiculus/events{/privacy}","received_events_url":"https://api.github.com/users/vermiculus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vermiculus/sx.el","description":"Stack Exchange for Emacs","fork":false,"url":"https://api.github.com/repos/vermiculus/sx.el","forks_url":"https://api.github.com/repos/vermiculus/sx.el/forks","keys_url":"https://api.github.com/repos/vermiculus/sx.el/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vermiculus/sx.el/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vermiculus/sx.el/teams","hooks_url":"https://api.github.com/repos/vermiculus/sx.el/hooks","issue_events_url":"https://api.github.com/repos/vermiculus/sx.el/issues/events{/number}","events_url":"https://api.github.com/repos/vermiculus/sx.el/events","assignees_url":"https://api.github.com/repos/vermiculus/sx.el/assignees{/user}","branches_url":"https://api.github.com/repos/vermiculus/sx.el/branches{/branch}","tags_url":"https://api.github.com/repos/vermiculus/sx.el/tags","blobs_url":"https://api.github.com/repos/vermiculus/sx.el/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vermiculus/sx.el/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vermiculus/sx.el/git/refs{/sha}","trees_url":"https://api.github.com/repos/vermiculus/sx.el/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vermiculus/sx.el/statuses/{sha}","languages_url":"https://api.github.com/repos/vermiculus/sx.el/languages","stargazers_url":"https://api.github.com/repos/vermiculus/sx.el/stargazers","contributors_url":"https://api.github.com/repos/vermiculus/sx.el/contributors","subscribers_url":"https://api.github.com/repos/vermiculus/sx.el/subscribers","subscription_url":"https://api.github.com/repos/vermiculus/sx.el/subscription","commits_url":"https://api.github.com/repos/vermiculus/sx.el/commits{/sha}","git_commits_url":"https://api.github.com/repos/vermiculus/sx.el/git/commits{/sha}","comments_url":"https://api.github.com/repos/vermiculus/sx.el/comments{/number}","issue_comment_url":"https://api.github.com/repos/vermiculus/sx.el/issues/comments/{number}","contents_url":"https://api.github.com/repos/vermiculus/sx.el/contents/{+path}","compare_url":"https://api.github.com/repos/vermiculus/sx.el/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vermiculus/sx.el/merges","archive_url":"https://api.github.com/repos/vermiculus/sx.el/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vermiculus/sx.el/downloads","issues_url":"https://api.github.com/repos/vermiculus/sx.el/issues{/number}","pulls_url":"https://api.github.com/repos/vermiculus/sx.el/pulls{/number}","milestones_url":"https://api.github.com/repos/vermiculus/sx.el/milestones{/number}","notifications_url":"https://api.github.com/repos/vermiculus/sx.el/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vermiculus/sx.el/labels{/name}","releases_url":"https://api.github.com/repos/vermiculus/sx.el/releases{/id}","created_at":"2013-02-27T14:15:40Z","updated_at":"2015-01-02T17:13:28Z","pushed_at":"2015-01-03T07:02:24Z","git_url":"git://github.com/vermiculus/sx.el.git","ssh_url":"git@github.com:vermiculus/sx.el.git","clone_url":"https://github.com/vermiculus/sx.el.git","svn_url":"https://github.com/vermiculus/sx.el","homepage":"","size":3599,"stargazers_count":196,"watchers_count":196,"language":"Emacs Lisp","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":27,"forks":11,"open_issues":27,"watchers":196,"default_branch":"master"}},"base":{"label":"vermiculus:master","ref":"master","sha":"e05f937910bb4ca0e7ea1c9f1273fbafac523921","user":{"login":"vermiculus","id":2082195,"avatar_url":"https://avatars.githubusercontent.com/u/2082195?v=3","gravatar_id":"","url":"https://api.github.com/users/vermiculus","html_url":"https://github.com/vermiculus","followers_url":"https://api.github.com/users/vermiculus/followers","following_url":"https://api.github.com/users/vermiculus/following{/other_user}","gists_url":"https://api.github.com/users/vermiculus/gists{/gist_id}","starred_url":"https://api.github.com/users/vermiculus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vermiculus/subscriptions","organizations_url":"https://api.github.com/users/vermiculus/orgs","repos_url":"https://api.github.com/users/vermiculus/repos","events_url":"https://api.github.com/users/vermiculus/events{/privacy}","received_events_url":"https://api.github.com/users/vermiculus/received_events","type":"User","site_admin":false},"repo":{"id":8457408,"name":"sx.el","full_name":"vermiculus/sx.el","owner":{"login":"vermiculus","id":2082195,"avatar_url":"https://avatars.githubusercontent.com/u/2082195?v=3","gravatar_id":"","url":"https://api.github.com/users/vermiculus","html_url":"https://github.com/vermiculus","followers_url":"https://api.github.com/users/vermiculus/followers","following_url":"https://api.github.com/users/vermiculus/following{/other_user}","gists_url":"https://api.github.com/users/vermiculus/gists{/gist_id}","starred_url":"https://api.github.com/users/vermiculus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vermiculus/subscriptions","organizations_url":"https://api.github.com/users/vermiculus/orgs","repos_url":"https://api.github.com/users/vermiculus/repos","events_url":"https://api.github.com/users/vermiculus/events{/privacy}","received_events_url":"https://api.github.com/users/vermiculus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vermiculus/sx.el","description":"Stack Exchange for Emacs","fork":false,"url":"https://api.github.com/repos/vermiculus/sx.el","forks_url":"https://api.github.com/repos/vermiculus/sx.el/forks","keys_url":"https://api.github.com/repos/vermiculus/sx.el/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vermiculus/sx.el/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vermiculus/sx.el/teams","hooks_url":"https://api.github.com/repos/vermiculus/sx.el/hooks","issue_events_url":"https://api.github.com/repos/vermiculus/sx.el/issues/events{/number}","events_url":"https://api.github.com/repos/vermiculus/sx.el/events","assignees_url":"https://api.github.com/repos/vermiculus/sx.el/assignees{/user}","branches_url":"https://api.github.com/repos/vermiculus/sx.el/branches{/branch}","tags_url":"https://api.github.com/repos/vermiculus/sx.el/tags","blobs_url":"https://api.github.com/repos/vermiculus/sx.el/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vermiculus/sx.el/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vermiculus/sx.el/git/refs{/sha}","trees_url":"https://api.github.com/repos/vermiculus/sx.el/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vermiculus/sx.el/statuses/{sha}","languages_url":"https://api.github.com/repos/vermiculus/sx.el/languages","stargazers_url":"https://api.github.com/repos/vermiculus/sx.el/stargazers","contributors_url":"https://api.github.com/repos/vermiculus/sx.el/contributors","subscribers_url":"https://api.github.com/repos/vermiculus/sx.el/subscribers","subscription_url":"https://api.github.com/repos/vermiculus/sx.el/subscription","commits_url":"https://api.github.com/repos/vermiculus/sx.el/commits{/sha}","git_commits_url":"https://api.github.com/repos/vermiculus/sx.el/git/commits{/sha}","comments_url":"https://api.github.com/repos/vermiculus/sx.el/comments{/number}","issue_comment_url":"https://api.github.com/repos/vermiculus/sx.el/issues/comments/{number}","contents_url":"https://api.github.com/repos/vermiculus/sx.el/contents/{+path}","compare_url":"https://api.github.com/repos/vermiculus/sx.el/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vermiculus/sx.el/merges","archive_url":"https://api.github.com/repos/vermiculus/sx.el/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vermiculus/sx.el/downloads","issues_url":"https://api.github.com/repos/vermiculus/sx.el/issues{/number}","pulls_url":"https://api.github.com/repos/vermiculus/sx.el/pulls{/number}","milestones_url":"https://api.github.com/repos/vermiculus/sx.el/milestones{/number}","notifications_url":"https://api.github.com/repos/vermiculus/sx.el/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vermiculus/sx.el/labels{/name}","releases_url":"https://api.github.com/repos/vermiculus/sx.el/releases{/id}","created_at":"2013-02-27T14:15:40Z","updated_at":"2015-01-02T17:13:28Z","pushed_at":"2015-01-03T07:02:24Z","git_url":"git://github.com/vermiculus/sx.el.git","ssh_url":"git@github.com:vermiculus/sx.el.git","clone_url":"https://github.com/vermiculus/sx.el.git","svn_url":"https://github.com/vermiculus/sx.el","homepage":"","size":3599,"stargazers_count":196,"watchers_count":196,"language":"Emacs Lisp","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":27,"forks":11,"open_issues":27,"watchers":196,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vermiculus/sx.el/pulls/187"},"html":{"href":"https://github.com/vermiculus/sx.el/pull/187"},"issue":{"href":"https://api.github.com/repos/vermiculus/sx.el/issues/187"},"comments":{"href":"https://api.github.com/repos/vermiculus/sx.el/issues/187/comments"},"review_comments":{"href":"https://api.github.com/repos/vermiculus/sx.el/pulls/187/comments"},"review_comment":{"href":"https://api.github.com/repos/vermiculus/sx.el/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/vermiculus/sx.el/pulls/187/commits"},"statuses":{"href":"https://api.github.com/repos/vermiculus/sx.el/statuses/63dcca1acd08c0d103196a5d35a581d5380d3717"}}}}