{"action":"closed","number":589,"pull_request":{"url":"https://api.github.com/repos/octokit/octokit.rb/pulls/589","id":35683936,"html_url":"https://github.com/octokit/octokit.rb/pull/589","diff_url":"https://github.com/octokit/octokit.rb/pull/589.diff","patch_url":"https://github.com/octokit/octokit.rb/pull/589.patch","issue_url":"https://api.github.com/repos/octokit/octokit.rb/issues/589","number":589,"state":"closed","locked":false,"title":"Change rate_limit to include search information","user":{"login":"ivantsepp","id":4662860,"avatar_url":"https://avatars.githubusercontent.com/u/4662860?v=3","gravatar_id":"","url":"https://api.github.com/users/ivantsepp","html_url":"https://github.com/ivantsepp","followers_url":"https://api.github.com/users/ivantsepp/followers","following_url":"https://api.github.com/users/ivantsepp/following{/other_user}","gists_url":"https://api.github.com/users/ivantsepp/gists{/gist_id}","starred_url":"https://api.github.com/users/ivantsepp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivantsepp/subscriptions","organizations_url":"https://api.github.com/users/ivantsepp/orgs","repos_url":"https://api.github.com/users/ivantsepp/repos","events_url":"https://api.github.com/users/ivantsepp/events{/privacy}","received_events_url":"https://api.github.com/users/ivantsepp/received_events","type":"User","site_admin":false},"body":"Sorry for the very late response!\r\n\r\nSee #586. This PR is to start a discussion on the various different paths one could take to tackle #586.\r\n\r\nThis PR:\r\n 1. Changes `rate_limit` in that it will return information from the last time you called `rate_limit!` instead of getting the information from the last response.\r\n 2. Changes `rate_limit!` in that it returns a structure that contains information about search and core resources\r\n\r\nNotes:\r\nFor item 1, I can see a way we can maintain the previous goal of not hitting `/rate_limit` while still containing the latest info. We could store references to the previous \"core\" response and previous \"search\" response and adjust accordingly.","created_at":"2015-05-18T23:35:44Z","updated_at":"2016-06-26T19:45:35Z","closed_at":"2016-06-26T19:45:35Z","merged_at":null,"merge_commit_sha":"0eea6851185e8003e810c7099ef5af73e7ecb781","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/octokit/octokit.rb/pulls/589/commits","review_comments_url":"https://api.github.com/repos/octokit/octokit.rb/pulls/589/comments","review_comment_url":"https://api.github.com/repos/octokit/octokit.rb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/octokit/octokit.rb/issues/589/comments","statuses_url":"https://api.github.com/repos/octokit/octokit.rb/statuses/c3d0164857423f9a1f38b0183d4ce5f204405a04","head":{"label":"ivantsepp:586_rate_limit_resource_update","ref":"586_rate_limit_resource_update","sha":"c3d0164857423f9a1f38b0183d4ce5f204405a04","user":{"login":"ivantsepp","id":4662860,"avatar_url":"https://avatars.githubusercontent.com/u/4662860?v=3","gravatar_id":"","url":"https://api.github.com/users/ivantsepp","html_url":"https://github.com/ivantsepp","followers_url":"https://api.github.com/users/ivantsepp/followers","following_url":"https://api.github.com/users/ivantsepp/following{/other_user}","gists_url":"https://api.github.com/users/ivantsepp/gists{/gist_id}","starred_url":"https://api.github.com/users/ivantsepp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivantsepp/subscriptions","organizations_url":"https://api.github.com/users/ivantsepp/orgs","repos_url":"https://api.github.com/users/ivantsepp/repos","events_url":"https://api.github.com/users/ivantsepp/events{/privacy}","received_events_url":"https://api.github.com/users/ivantsepp/received_events","type":"User","site_admin":false},"repo":{"id":35847996,"name":"octokit.rb","full_name":"ivantsepp/octokit.rb","owner":{"login":"ivantsepp","id":4662860,"avatar_url":"https://avatars.githubusercontent.com/u/4662860?v=3","gravatar_id":"","url":"https://api.github.com/users/ivantsepp","html_url":"https://github.com/ivantsepp","followers_url":"https://api.github.com/users/ivantsepp/followers","following_url":"https://api.github.com/users/ivantsepp/following{/other_user}","gists_url":"https://api.github.com/users/ivantsepp/gists{/gist_id}","starred_url":"https://api.github.com/users/ivantsepp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivantsepp/subscriptions","organizations_url":"https://api.github.com/users/ivantsepp/orgs","repos_url":"https://api.github.com/users/ivantsepp/repos","events_url":"https://api.github.com/users/ivantsepp/events{/privacy}","received_events_url":"https://api.github.com/users/ivantsepp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ivantsepp/octokit.rb","description":"Ruby toolkit for the GitHub API","fork":true,"url":"https://api.github.com/repos/ivantsepp/octokit.rb","forks_url":"https://api.github.com/repos/ivantsepp/octokit.rb/forks","keys_url":"https://api.github.com/repos/ivantsepp/octokit.rb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ivantsepp/octokit.rb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ivantsepp/octokit.rb/teams","hooks_url":"https://api.github.com/repos/ivantsepp/octokit.rb/hooks","issue_events_url":"https://api.github.com/repos/ivantsepp/octokit.rb/issues/events{/number}","events_url":"https://api.github.com/repos/ivantsepp/octokit.rb/events","assignees_url":"https://api.github.com/repos/ivantsepp/octokit.rb/assignees{/user}","branches_url":"https://api.github.com/repos/ivantsepp/octokit.rb/branches{/branch}","tags_url":"https://api.github.com/repos/ivantsepp/octokit.rb/tags","blobs_url":"https://api.github.com/repos/ivantsepp/octokit.rb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ivantsepp/octokit.rb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ivantsepp/octokit.rb/git/refs{/sha}","trees_url":"https://api.github.com/repos/ivantsepp/octokit.rb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ivantsepp/octokit.rb/statuses/{sha}","languages_url":"https://api.github.com/repos/ivantsepp/octokit.rb/languages","stargazers_url":"https://api.github.com/repos/ivantsepp/octokit.rb/stargazers","contributors_url":"https://api.github.com/repos/ivantsepp/octokit.rb/contributors","subscribers_url":"https://api.github.com/repos/ivantsepp/octokit.rb/subscribers","subscription_url":"https://api.github.com/repos/ivantsepp/octokit.rb/subscription","commits_url":"https://api.github.com/repos/ivantsepp/octokit.rb/commits{/sha}","git_commits_url":"https://api.github.com/repos/ivantsepp/octokit.rb/git/commits{/sha}","comments_url":"https://api.github.com/repos/ivantsepp/octokit.rb/comments{/number}","issue_comment_url":"https://api.github.com/repos/ivantsepp/octokit.rb/issues/comments{/number}","contents_url":"https://api.github.com/repos/ivantsepp/octokit.rb/contents/{+path}","compare_url":"https://api.github.com/repos/ivantsepp/octokit.rb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ivantsepp/octokit.rb/merges","archive_url":"https://api.github.com/repos/ivantsepp/octokit.rb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ivantsepp/octokit.rb/downloads","issues_url":"https://api.github.com/repos/ivantsepp/octokit.rb/issues{/number}","pulls_url":"https://api.github.com/repos/ivantsepp/octokit.rb/pulls{/number}","milestones_url":"https://api.github.com/repos/ivantsepp/octokit.rb/milestones{/number}","notifications_url":"https://api.github.com/repos/ivantsepp/octokit.rb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ivantsepp/octokit.rb/labels{/name}","releases_url":"https://api.github.com/repos/ivantsepp/octokit.rb/releases{/id}","deployments_url":"https://api.github.com/repos/ivantsepp/octokit.rb/deployments","created_at":"2015-05-18T23:32:12Z","updated_at":"2015-05-18T23:32:15Z","pushed_at":"2015-05-19T00:14:10Z","git_url":"git://github.com/ivantsepp/octokit.rb.git","ssh_url":"git@github.com:ivantsepp/octokit.rb.git","clone_url":"https://github.com/ivantsepp/octokit.rb.git","svn_url":"https://github.com/ivantsepp/octokit.rb","homepage":"http://octokit.github.io/octokit.rb/","size":11923,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"octokit:master","ref":"master","sha":"f5f9f2fab804cd2231bd8a33c3a3234504782243","user":{"login":"octokit","id":3430433,"avatar_url":"https://avatars.githubusercontent.com/u/3430433?v=3","gravatar_id":"","url":"https://api.github.com/users/octokit","html_url":"https://github.com/octokit","followers_url":"https://api.github.com/users/octokit/followers","following_url":"https://api.github.com/users/octokit/following{/other_user}","gists_url":"https://api.github.com/users/octokit/gists{/gist_id}","starred_url":"https://api.github.com/users/octokit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octokit/subscriptions","organizations_url":"https://api.github.com/users/octokit/orgs","repos_url":"https://api.github.com/users/octokit/repos","events_url":"https://api.github.com/users/octokit/events{/privacy}","received_events_url":"https://api.github.com/users/octokit/received_events","type":"Organization","site_admin":false},"repo":{"id":417862,"name":"octokit.rb","full_name":"octokit/octokit.rb","owner":{"login":"octokit","id":3430433,"avatar_url":"https://avatars.githubusercontent.com/u/3430433?v=3","gravatar_id":"","url":"https://api.github.com/users/octokit","html_url":"https://github.com/octokit","followers_url":"https://api.github.com/users/octokit/followers","following_url":"https://api.github.com/users/octokit/following{/other_user}","gists_url":"https://api.github.com/users/octokit/gists{/gist_id}","starred_url":"https://api.github.com/users/octokit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octokit/subscriptions","organizations_url":"https://api.github.com/users/octokit/orgs","repos_url":"https://api.github.com/users/octokit/repos","events_url":"https://api.github.com/users/octokit/events{/privacy}","received_events_url":"https://api.github.com/users/octokit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/octokit/octokit.rb","description":"Ruby toolkit for the GitHub API","fork":false,"url":"https://api.github.com/repos/octokit/octokit.rb","forks_url":"https://api.github.com/repos/octokit/octokit.rb/forks","keys_url":"https://api.github.com/repos/octokit/octokit.rb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/octokit/octokit.rb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/octokit/octokit.rb/teams","hooks_url":"https://api.github.com/repos/octokit/octokit.rb/hooks","issue_events_url":"https://api.github.com/repos/octokit/octokit.rb/issues/events{/number}","events_url":"https://api.github.com/repos/octokit/octokit.rb/events","assignees_url":"https://api.github.com/repos/octokit/octokit.rb/assignees{/user}","branches_url":"https://api.github.com/repos/octokit/octokit.rb/branches{/branch}","tags_url":"https://api.github.com/repos/octokit/octokit.rb/tags","blobs_url":"https://api.github.com/repos/octokit/octokit.rb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/octokit/octokit.rb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/octokit/octokit.rb/git/refs{/sha}","trees_url":"https://api.github.com/repos/octokit/octokit.rb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/octokit/octokit.rb/statuses/{sha}","languages_url":"https://api.github.com/repos/octokit/octokit.rb/languages","stargazers_url":"https://api.github.com/repos/octokit/octokit.rb/stargazers","contributors_url":"https://api.github.com/repos/octokit/octokit.rb/contributors","subscribers_url":"https://api.github.com/repos/octokit/octokit.rb/subscribers","subscription_url":"https://api.github.com/repos/octokit/octokit.rb/subscription","commits_url":"https://api.github.com/repos/octokit/octokit.rb/commits{/sha}","git_commits_url":"https://api.github.com/repos/octokit/octokit.rb/git/commits{/sha}","comments_url":"https://api.github.com/repos/octokit/octokit.rb/comments{/number}","issue_comment_url":"https://api.github.com/repos/octokit/octokit.rb/issues/comments{/number}","contents_url":"https://api.github.com/repos/octokit/octokit.rb/contents/{+path}","compare_url":"https://api.github.com/repos/octokit/octokit.rb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/octokit/octokit.rb/merges","archive_url":"https://api.github.com/repos/octokit/octokit.rb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/octokit/octokit.rb/downloads","issues_url":"https://api.github.com/repos/octokit/octokit.rb/issues{/number}","pulls_url":"https://api.github.com/repos/octokit/octokit.rb/pulls{/number}","milestones_url":"https://api.github.com/repos/octokit/octokit.rb/milestones{/number}","notifications_url":"https://api.github.com/repos/octokit/octokit.rb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/octokit/octokit.rb/labels{/name}","releases_url":"https://api.github.com/repos/octokit/octokit.rb/releases{/id}","deployments_url":"https://api.github.com/repos/octokit/octokit.rb/deployments","created_at":"2009-12-10T21:41:49Z","updated_at":"2016-06-26T10:06:01Z","pushed_at":"2016-06-26T00:43:44Z","git_url":"git://github.com/octokit/octokit.rb.git","ssh_url":"git@github.com:octokit/octokit.rb.git","clone_url":"https://github.com/octokit/octokit.rb.git","svn_url":"https://github.com/octokit/octokit.rb","homepage":"http://octokit.github.io/octokit.rb/","size":14341,"stargazers_count":2276,"watchers_count":2276,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":581,"mirror_url":null,"open_issues_count":34,"forks":581,"open_issues":34,"watchers":2276,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/octokit/octokit.rb/pulls/589"},"html":{"href":"https://github.com/octokit/octokit.rb/pull/589"},"issue":{"href":"https://api.github.com/repos/octokit/octokit.rb/issues/589"},"comments":{"href":"https://api.github.com/repos/octokit/octokit.rb/issues/589/comments"},"review_comments":{"href":"https://api.github.com/repos/octokit/octokit.rb/pulls/589/comments"},"review_comment":{"href":"https://api.github.com/repos/octokit/octokit.rb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/octokit/octokit.rb/pulls/589/commits"},"statuses":{"href":"https://api.github.com/repos/octokit/octokit.rb/statuses/c3d0164857423f9a1f38b0183d4ce5f204405a04"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":3,"review_comments":1,"commits":2,"additions":61,"deletions":48,"changed_files":10}}
{"actor":{"display_login":"pengwynn"}}