{"action":"created","comment":{"url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/comments/39043130","id":39043130,"diff_hunk":"@@ -0,0 +1,5 @@\n+class AddPreviousRefreshTokenToAccessTokens < ActiveRecord::Migration\n+  def change\n+    add_column :oauth_access_tokens, :previous_refresh_token, :string\n+  end\n+end","path":"lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb","position":5,"original_position":5,"commit_id":"097ab1df6990a9bf20ea4e930032e59da1b2b6da","original_commit_id":"3ab656f393e17833d78c62c6e1a222e4d2fece66","user":{"login":"pmdeazeta","id":768122,"avatar_url":"https://avatars.githubusercontent.com/u/768122?v=3","gravatar_id":"","url":"https://api.github.com/users/pmdeazeta","html_url":"https://github.com/pmdeazeta","followers_url":"https://api.github.com/users/pmdeazeta/followers","following_url":"https://api.github.com/users/pmdeazeta/following{/other_user}","gists_url":"https://api.github.com/users/pmdeazeta/gists{/gist_id}","starred_url":"https://api.github.com/users/pmdeazeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmdeazeta/subscriptions","organizations_url":"https://api.github.com/users/pmdeazeta/orgs","repos_url":"https://api.github.com/users/pmdeazeta/repos","events_url":"https://api.github.com/users/pmdeazeta/events{/privacy}","received_events_url":"https://api.github.com/users/pmdeazeta/received_events","type":"User","site_admin":false},"body":"I've added the generator","created_at":"2015-09-09T13:44:24Z","updated_at":"2015-09-09T13:44:24Z","html_url":"https://github.com/doorkeeper-gem/doorkeeper/pull/691#discussion_r39043130","pull_request_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/691","_links":{"self":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/comments/39043130"},"html":{"href":"https://github.com/doorkeeper-gem/doorkeeper/pull/691#discussion_r39043130"},"pull_request":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/691"}}},"pull_request":{"url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/691","id":39786537,"html_url":"https://github.com/doorkeeper-gem/doorkeeper/pull/691","diff_url":"https://github.com/doorkeeper-gem/doorkeeper/pull/691.diff","patch_url":"https://github.com/doorkeeper-gem/doorkeeper/pull/691.patch","issue_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/691","number":691,"state":"open","locked":false,"title":"Revoke Refresh Token on access token use","user":{"login":"pmdeazeta","id":768122,"avatar_url":"https://avatars.githubusercontent.com/u/768122?v=3","gravatar_id":"","url":"https://api.github.com/users/pmdeazeta","html_url":"https://github.com/pmdeazeta","followers_url":"https://api.github.com/users/pmdeazeta/followers","following_url":"https://api.github.com/users/pmdeazeta/following{/other_user}","gists_url":"https://api.github.com/users/pmdeazeta/gists{/gist_id}","starred_url":"https://api.github.com/users/pmdeazeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmdeazeta/subscriptions","organizations_url":"https://api.github.com/users/pmdeazeta/orgs","repos_url":"https://api.github.com/users/pmdeazeta/repos","events_url":"https://api.github.com/users/pmdeazeta/events{/privacy}","received_events_url":"https://api.github.com/users/pmdeazeta/received_events","type":"User","site_admin":false},"body":"Creating another PR based on this https://github.com/doorkeeper-gem/doorkeeper/pull/578","created_at":"2015-07-13T07:53:16Z","updated_at":"2015-09-09T13:44:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ebbf6ad637956385e9a15d5ab3757997c3dda81e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/691/commits","review_comments_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/691/comments","review_comment_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/691/comments","statuses_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/statuses/097ab1df6990a9bf20ea4e930032e59da1b2b6da","head":{"label":"pmdeazeta:feature/revoke-on-use","ref":"feature/revoke-on-use","sha":"097ab1df6990a9bf20ea4e930032e59da1b2b6da","user":{"login":"pmdeazeta","id":768122,"avatar_url":"https://avatars.githubusercontent.com/u/768122?v=3","gravatar_id":"","url":"https://api.github.com/users/pmdeazeta","html_url":"https://github.com/pmdeazeta","followers_url":"https://api.github.com/users/pmdeazeta/followers","following_url":"https://api.github.com/users/pmdeazeta/following{/other_user}","gists_url":"https://api.github.com/users/pmdeazeta/gists{/gist_id}","starred_url":"https://api.github.com/users/pmdeazeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmdeazeta/subscriptions","organizations_url":"https://api.github.com/users/pmdeazeta/orgs","repos_url":"https://api.github.com/users/pmdeazeta/repos","events_url":"https://api.github.com/users/pmdeazeta/events{/privacy}","received_events_url":"https://api.github.com/users/pmdeazeta/received_events","type":"User","site_admin":false},"repo":{"id":38992122,"name":"doorkeeper","full_name":"pmdeazeta/doorkeeper","owner":{"login":"pmdeazeta","id":768122,"avatar_url":"https://avatars.githubusercontent.com/u/768122?v=3","gravatar_id":"","url":"https://api.github.com/users/pmdeazeta","html_url":"https://github.com/pmdeazeta","followers_url":"https://api.github.com/users/pmdeazeta/followers","following_url":"https://api.github.com/users/pmdeazeta/following{/other_user}","gists_url":"https://api.github.com/users/pmdeazeta/gists{/gist_id}","starred_url":"https://api.github.com/users/pmdeazeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmdeazeta/subscriptions","organizations_url":"https://api.github.com/users/pmdeazeta/orgs","repos_url":"https://api.github.com/users/pmdeazeta/repos","events_url":"https://api.github.com/users/pmdeazeta/events{/privacy}","received_events_url":"https://api.github.com/users/pmdeazeta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pmdeazeta/doorkeeper","description":"Doorkeeper is an OAuth 2 provider for Rails and Grape","fork":true,"url":"https://api.github.com/repos/pmdeazeta/doorkeeper","forks_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/forks","keys_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/teams","hooks_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/hooks","issue_events_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/issues/events{/number}","events_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/events","assignees_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/assignees{/user}","branches_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/branches{/branch}","tags_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/tags","blobs_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/git/refs{/sha}","trees_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/statuses/{sha}","languages_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/languages","stargazers_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/stargazers","contributors_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/contributors","subscribers_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/subscribers","subscription_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/subscription","commits_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/commits{/sha}","git_commits_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/git/commits{/sha}","comments_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/comments{/number}","issue_comment_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/issues/comments{/number}","contents_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/contents/{+path}","compare_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/merges","archive_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/downloads","issues_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/issues{/number}","pulls_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/pulls{/number}","milestones_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/milestones{/number}","notifications_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/labels{/name}","releases_url":"https://api.github.com/repos/pmdeazeta/doorkeeper/releases{/id}","created_at":"2015-07-13T05:03:26Z","updated_at":"2015-07-13T05:03:28Z","pushed_at":"2015-09-09T13:43:46Z","git_url":"git://github.com/pmdeazeta/doorkeeper.git","ssh_url":"git@github.com:pmdeazeta/doorkeeper.git","clone_url":"https://github.com/pmdeazeta/doorkeeper.git","svn_url":"https://github.com/pmdeazeta/doorkeeper","homepage":"","size":2089,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"doorkeeper-gem:master","ref":"master","sha":"a70e1a86cf5290dd642e00aedbdbb94bfd553f6b","user":{"login":"doorkeeper-gem","id":7275750,"avatar_url":"https://avatars.githubusercontent.com/u/7275750?v=3","gravatar_id":"","url":"https://api.github.com/users/doorkeeper-gem","html_url":"https://github.com/doorkeeper-gem","followers_url":"https://api.github.com/users/doorkeeper-gem/followers","following_url":"https://api.github.com/users/doorkeeper-gem/following{/other_user}","gists_url":"https://api.github.com/users/doorkeeper-gem/gists{/gist_id}","starred_url":"https://api.github.com/users/doorkeeper-gem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doorkeeper-gem/subscriptions","organizations_url":"https://api.github.com/users/doorkeeper-gem/orgs","repos_url":"https://api.github.com/users/doorkeeper-gem/repos","events_url":"https://api.github.com/users/doorkeeper-gem/events{/privacy}","received_events_url":"https://api.github.com/users/doorkeeper-gem/received_events","type":"Organization","site_admin":false},"repo":{"id":2802565,"name":"doorkeeper","full_name":"doorkeeper-gem/doorkeeper","owner":{"login":"doorkeeper-gem","id":7275750,"avatar_url":"https://avatars.githubusercontent.com/u/7275750?v=3","gravatar_id":"","url":"https://api.github.com/users/doorkeeper-gem","html_url":"https://github.com/doorkeeper-gem","followers_url":"https://api.github.com/users/doorkeeper-gem/followers","following_url":"https://api.github.com/users/doorkeeper-gem/following{/other_user}","gists_url":"https://api.github.com/users/doorkeeper-gem/gists{/gist_id}","starred_url":"https://api.github.com/users/doorkeeper-gem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doorkeeper-gem/subscriptions","organizations_url":"https://api.github.com/users/doorkeeper-gem/orgs","repos_url":"https://api.github.com/users/doorkeeper-gem/repos","events_url":"https://api.github.com/users/doorkeeper-gem/events{/privacy}","received_events_url":"https://api.github.com/users/doorkeeper-gem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/doorkeeper-gem/doorkeeper","description":"Doorkeeper is an OAuth 2 provider for Rails and Grape","fork":false,"url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper","forks_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/forks","keys_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/teams","hooks_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/hooks","issue_events_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/events{/number}","events_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/events","assignees_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/assignees{/user}","branches_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/branches{/branch}","tags_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/tags","blobs_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/git/refs{/sha}","trees_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/statuses/{sha}","languages_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/languages","stargazers_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/stargazers","contributors_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/contributors","subscribers_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/subscribers","subscription_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/subscription","commits_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/commits{/sha}","git_commits_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/git/commits{/sha}","comments_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/comments{/number}","issue_comment_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/comments{/number}","contents_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/contents/{+path}","compare_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/merges","archive_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/downloads","issues_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues{/number}","pulls_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls{/number}","milestones_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/milestones{/number}","notifications_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/labels{/name}","releases_url":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/releases{/id}","created_at":"2011-11-18T13:02:01Z","updated_at":"2015-09-08T02:36:21Z","pushed_at":"2015-09-09T13:43:48Z","git_url":"git://github.com/doorkeeper-gem/doorkeeper.git","ssh_url":"git@github.com:doorkeeper-gem/doorkeeper.git","clone_url":"https://github.com/doorkeeper-gem/doorkeeper.git","svn_url":"https://github.com/doorkeeper-gem/doorkeeper","homepage":"","size":6126,"stargazers_count":2548,"watchers_count":2548,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":516,"mirror_url":null,"open_issues_count":19,"forks":516,"open_issues":19,"watchers":2548,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/691"},"html":{"href":"https://github.com/doorkeeper-gem/doorkeeper/pull/691"},"issue":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/691"},"comments":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/issues/691/comments"},"review_comments":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/691/comments"},"review_comment":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/pulls/691/commits"},"statuses":{"href":"https://api.github.com/repos/doorkeeper-gem/doorkeeper/statuses/097ab1df6990a9bf20ea4e930032e59da1b2b6da"}}}}