{"action":"closed","number":358,"pull_request":{"url":"https://api.github.com/repos/howdyai/botkit/pulls/358","id":80518369,"html_url":"https://github.com/howdyai/botkit/pull/358","diff_url":"https://github.com/howdyai/botkit/pull/358.diff","patch_url":"https://github.com/howdyai/botkit/pull/358.patch","issue_url":"https://api.github.com/repos/howdyai/botkit/issues/358","number":358,"state":"closed","locked":false,"title":"Going through Slack OAuth flow should update the user's token and sco…","user":{"login":"sundeepgupta","id":2365037,"avatar_url":"https://avatars.githubusercontent.com/u/2365037?v=3","gravatar_id":"","url":"https://api.github.com/users/sundeepgupta","html_url":"https://github.com/sundeepgupta","followers_url":"https://api.github.com/users/sundeepgupta/followers","following_url":"https://api.github.com/users/sundeepgupta/following{/other_user}","gists_url":"https://api.github.com/users/sundeepgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/sundeepgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sundeepgupta/subscriptions","organizations_url":"https://api.github.com/users/sundeepgupta/orgs","repos_url":"https://api.github.com/users/sundeepgupta/repos","events_url":"https://api.github.com/users/sundeepgupta/events{/privacy}","received_events_url":"https://api.github.com/users/sundeepgupta/received_events","type":"User","site_admin":false},"body":"…pes.\r\n\r\nThis is necessary because the OAuth access token could become invalid or revoked. Also the application's required scopes could change. If these things happen and we need to have the user auth again, the new tokens/scopes should be updated on that user.","created_at":"2016-08-08T20:42:36Z","updated_at":"2016-08-13T00:24:36Z","closed_at":"2016-08-13T00:24:36Z","merged_at":"2016-08-13T00:24:36Z","merge_commit_sha":"59558e95075a03757c42ef54c27887e31ee8051c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/howdyai/botkit/pulls/358/commits","review_comments_url":"https://api.github.com/repos/howdyai/botkit/pulls/358/comments","review_comment_url":"https://api.github.com/repos/howdyai/botkit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/howdyai/botkit/issues/358/comments","statuses_url":"https://api.github.com/repos/howdyai/botkit/statuses/adeeb7e52ca151ed4e1445159e3fc8a1476140d2","head":{"label":"sundeepgupta:updateSlackCredsOnAuth","ref":"updateSlackCredsOnAuth","sha":"adeeb7e52ca151ed4e1445159e3fc8a1476140d2","user":{"login":"sundeepgupta","id":2365037,"avatar_url":"https://avatars.githubusercontent.com/u/2365037?v=3","gravatar_id":"","url":"https://api.github.com/users/sundeepgupta","html_url":"https://github.com/sundeepgupta","followers_url":"https://api.github.com/users/sundeepgupta/followers","following_url":"https://api.github.com/users/sundeepgupta/following{/other_user}","gists_url":"https://api.github.com/users/sundeepgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/sundeepgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sundeepgupta/subscriptions","organizations_url":"https://api.github.com/users/sundeepgupta/orgs","repos_url":"https://api.github.com/users/sundeepgupta/repos","events_url":"https://api.github.com/users/sundeepgupta/events{/privacy}","received_events_url":"https://api.github.com/users/sundeepgupta/received_events","type":"User","site_admin":false},"repo":{"id":63543086,"name":"botkit","full_name":"sundeepgupta/botkit","owner":{"login":"sundeepgupta","id":2365037,"avatar_url":"https://avatars.githubusercontent.com/u/2365037?v=3","gravatar_id":"","url":"https://api.github.com/users/sundeepgupta","html_url":"https://github.com/sundeepgupta","followers_url":"https://api.github.com/users/sundeepgupta/followers","following_url":"https://api.github.com/users/sundeepgupta/following{/other_user}","gists_url":"https://api.github.com/users/sundeepgupta/gists{/gist_id}","starred_url":"https://api.github.com/users/sundeepgupta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sundeepgupta/subscriptions","organizations_url":"https://api.github.com/users/sundeepgupta/orgs","repos_url":"https://api.github.com/users/sundeepgupta/repos","events_url":"https://api.github.com/users/sundeepgupta/events{/privacy}","received_events_url":"https://api.github.com/users/sundeepgupta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sundeepgupta/botkit","description":"Botkit is a toolkit for making bot applications","fork":true,"url":"https://api.github.com/repos/sundeepgupta/botkit","forks_url":"https://api.github.com/repos/sundeepgupta/botkit/forks","keys_url":"https://api.github.com/repos/sundeepgupta/botkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sundeepgupta/botkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sundeepgupta/botkit/teams","hooks_url":"https://api.github.com/repos/sundeepgupta/botkit/hooks","issue_events_url":"https://api.github.com/repos/sundeepgupta/botkit/issues/events{/number}","events_url":"https://api.github.com/repos/sundeepgupta/botkit/events","assignees_url":"https://api.github.com/repos/sundeepgupta/botkit/assignees{/user}","branches_url":"https://api.github.com/repos/sundeepgupta/botkit/branches{/branch}","tags_url":"https://api.github.com/repos/sundeepgupta/botkit/tags","blobs_url":"https://api.github.com/repos/sundeepgupta/botkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sundeepgupta/botkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sundeepgupta/botkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/sundeepgupta/botkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sundeepgupta/botkit/statuses/{sha}","languages_url":"https://api.github.com/repos/sundeepgupta/botkit/languages","stargazers_url":"https://api.github.com/repos/sundeepgupta/botkit/stargazers","contributors_url":"https://api.github.com/repos/sundeepgupta/botkit/contributors","subscribers_url":"https://api.github.com/repos/sundeepgupta/botkit/subscribers","subscription_url":"https://api.github.com/repos/sundeepgupta/botkit/subscription","commits_url":"https://api.github.com/repos/sundeepgupta/botkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/sundeepgupta/botkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/sundeepgupta/botkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/sundeepgupta/botkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/sundeepgupta/botkit/contents/{+path}","compare_url":"https://api.github.com/repos/sundeepgupta/botkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sundeepgupta/botkit/merges","archive_url":"https://api.github.com/repos/sundeepgupta/botkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sundeepgupta/botkit/downloads","issues_url":"https://api.github.com/repos/sundeepgupta/botkit/issues{/number}","pulls_url":"https://api.github.com/repos/sundeepgupta/botkit/pulls{/number}","milestones_url":"https://api.github.com/repos/sundeepgupta/botkit/milestones{/number}","notifications_url":"https://api.github.com/repos/sundeepgupta/botkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sundeepgupta/botkit/labels{/name}","releases_url":"https://api.github.com/repos/sundeepgupta/botkit/releases{/id}","deployments_url":"https://api.github.com/repos/sundeepgupta/botkit/deployments","created_at":"2016-07-17T17:03:50Z","updated_at":"2016-07-17T17:03:53Z","pushed_at":"2016-08-08T21:22:49Z","git_url":"git://github.com/sundeepgupta/botkit.git","ssh_url":"git@github.com:sundeepgupta/botkit.git","clone_url":"https://github.com/sundeepgupta/botkit.git","svn_url":"https://github.com/sundeepgupta/botkit","homepage":null,"size":498,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"howdyai:master","ref":"master","sha":"677a4c712537695277e4ea02690342bc0403e323","user":{"login":"howdyai","id":16260958,"avatar_url":"https://avatars.githubusercontent.com/u/16260958?v=3","gravatar_id":"","url":"https://api.github.com/users/howdyai","html_url":"https://github.com/howdyai","followers_url":"https://api.github.com/users/howdyai/followers","following_url":"https://api.github.com/users/howdyai/following{/other_user}","gists_url":"https://api.github.com/users/howdyai/gists{/gist_id}","starred_url":"https://api.github.com/users/howdyai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howdyai/subscriptions","organizations_url":"https://api.github.com/users/howdyai/orgs","repos_url":"https://api.github.com/users/howdyai/repos","events_url":"https://api.github.com/users/howdyai/events{/privacy}","received_events_url":"https://api.github.com/users/howdyai/received_events","type":"Organization","site_admin":false},"repo":{"id":47851629,"name":"botkit","full_name":"howdyai/botkit","owner":{"login":"howdyai","id":16260958,"avatar_url":"https://avatars.githubusercontent.com/u/16260958?v=3","gravatar_id":"","url":"https://api.github.com/users/howdyai","html_url":"https://github.com/howdyai","followers_url":"https://api.github.com/users/howdyai/followers","following_url":"https://api.github.com/users/howdyai/following{/other_user}","gists_url":"https://api.github.com/users/howdyai/gists{/gist_id}","starred_url":"https://api.github.com/users/howdyai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howdyai/subscriptions","organizations_url":"https://api.github.com/users/howdyai/orgs","repos_url":"https://api.github.com/users/howdyai/repos","events_url":"https://api.github.com/users/howdyai/events{/privacy}","received_events_url":"https://api.github.com/users/howdyai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/howdyai/botkit","description":"Botkit is a toolkit for making bot applications","fork":false,"url":"https://api.github.com/repos/howdyai/botkit","forks_url":"https://api.github.com/repos/howdyai/botkit/forks","keys_url":"https://api.github.com/repos/howdyai/botkit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/howdyai/botkit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/howdyai/botkit/teams","hooks_url":"https://api.github.com/repos/howdyai/botkit/hooks","issue_events_url":"https://api.github.com/repos/howdyai/botkit/issues/events{/number}","events_url":"https://api.github.com/repos/howdyai/botkit/events","assignees_url":"https://api.github.com/repos/howdyai/botkit/assignees{/user}","branches_url":"https://api.github.com/repos/howdyai/botkit/branches{/branch}","tags_url":"https://api.github.com/repos/howdyai/botkit/tags","blobs_url":"https://api.github.com/repos/howdyai/botkit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/howdyai/botkit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/howdyai/botkit/git/refs{/sha}","trees_url":"https://api.github.com/repos/howdyai/botkit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/howdyai/botkit/statuses/{sha}","languages_url":"https://api.github.com/repos/howdyai/botkit/languages","stargazers_url":"https://api.github.com/repos/howdyai/botkit/stargazers","contributors_url":"https://api.github.com/repos/howdyai/botkit/contributors","subscribers_url":"https://api.github.com/repos/howdyai/botkit/subscribers","subscription_url":"https://api.github.com/repos/howdyai/botkit/subscription","commits_url":"https://api.github.com/repos/howdyai/botkit/commits{/sha}","git_commits_url":"https://api.github.com/repos/howdyai/botkit/git/commits{/sha}","comments_url":"https://api.github.com/repos/howdyai/botkit/comments{/number}","issue_comment_url":"https://api.github.com/repos/howdyai/botkit/issues/comments{/number}","contents_url":"https://api.github.com/repos/howdyai/botkit/contents/{+path}","compare_url":"https://api.github.com/repos/howdyai/botkit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/howdyai/botkit/merges","archive_url":"https://api.github.com/repos/howdyai/botkit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/howdyai/botkit/downloads","issues_url":"https://api.github.com/repos/howdyai/botkit/issues{/number}","pulls_url":"https://api.github.com/repos/howdyai/botkit/pulls{/number}","milestones_url":"https://api.github.com/repos/howdyai/botkit/milestones{/number}","notifications_url":"https://api.github.com/repos/howdyai/botkit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/howdyai/botkit/labels{/name}","releases_url":"https://api.github.com/repos/howdyai/botkit/releases{/id}","deployments_url":"https://api.github.com/repos/howdyai/botkit/deployments","created_at":"2015-12-11T21:21:12Z","updated_at":"2016-08-12T23:35:47Z","pushed_at":"2016-08-13T00:24:36Z","git_url":"git://github.com/howdyai/botkit.git","ssh_url":"git@github.com:howdyai/botkit.git","clone_url":"https://github.com/howdyai/botkit.git","svn_url":"https://github.com/howdyai/botkit","homepage":null,"size":1219,"stargazers_count":4091,"watchers_count":4091,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":675,"mirror_url":null,"open_issues_count":93,"forks":675,"open_issues":93,"watchers":4091,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/howdyai/botkit/pulls/358"},"html":{"href":"https://github.com/howdyai/botkit/pull/358"},"issue":{"href":"https://api.github.com/repos/howdyai/botkit/issues/358"},"comments":{"href":"https://api.github.com/repos/howdyai/botkit/issues/358/comments"},"review_comments":{"href":"https://api.github.com/repos/howdyai/botkit/pulls/358/comments"},"review_comment":{"href":"https://api.github.com/repos/howdyai/botkit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/howdyai/botkit/pulls/358/commits"},"statuses":{"href":"https://api.github.com/repos/howdyai/botkit/statuses/adeeb7e52ca151ed4e1445159e3fc8a1476140d2"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"benbrown","id":729873,"avatar_url":"https://avatars.githubusercontent.com/u/729873?v=3","gravatar_id":"","url":"https://api.github.com/users/benbrown","html_url":"https://github.com/benbrown","followers_url":"https://api.github.com/users/benbrown/followers","following_url":"https://api.github.com/users/benbrown/following{/other_user}","gists_url":"https://api.github.com/users/benbrown/gists{/gist_id}","starred_url":"https://api.github.com/users/benbrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbrown/subscriptions","organizations_url":"https://api.github.com/users/benbrown/orgs","repos_url":"https://api.github.com/users/benbrown/repos","events_url":"https://api.github.com/users/benbrown/events{/privacy}","received_events_url":"https://api.github.com/users/benbrown/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"benbrown"}}