{"action":"created","comment":{"url":"https://api.github.com/repos/pyslackers/website/pulls/comments/142712718","pull_request_review_id":67112245,"id":142712718,"diff_hunk":"@@ -147,3 +147,11 @@\n         state: restarted\n       tags:\n         - deploy\n+    - name: send notification on slack\n+      slack:\n+        token: \"{{ slack.notifications.token }}\"\n+        channel: \"#community_projects\"\n+        msg: \"Successfully deployed new version of website\"","path":"ansible/playbook.yml","position":8,"original_position":8,"commit_id":"4d3415eca5355f48d25cd67fc786f41bb41921ea","original_commit_id":"4d3415eca5355f48d25cd67fc786f41bb41921ea","user":{"login":"mrasband","id":2184696,"avatar_url":"https://avatars0.githubusercontent.com/u/2184696?v=4","gravatar_id":"","url":"https://api.github.com/users/mrasband","html_url":"https://github.com/mrasband","followers_url":"https://api.github.com/users/mrasband/followers","following_url":"https://api.github.com/users/mrasband/following{/other_user}","gists_url":"https://api.github.com/users/mrasband/gists{/gist_id}","starred_url":"https://api.github.com/users/mrasband/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrasband/subscriptions","organizations_url":"https://api.github.com/users/mrasband/orgs","repos_url":"https://api.github.com/users/mrasband/repos","events_url":"https://api.github.com/users/mrasband/events{/privacy}","received_events_url":"https://api.github.com/users/mrasband/received_events","type":"User","site_admin":false},"body":"If possible, can you add either a _sha_ or use the _deploy\\_version_ variable (with a default to 'master').","created_at":"2017-10-04T15:53:02Z","updated_at":"2017-10-04T15:53:09Z","html_url":"https://github.com/pyslackers/website/pull/100#discussion_r142712718","pull_request_url":"https://api.github.com/repos/pyslackers/website/pulls/100","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/pyslackers/website/pulls/comments/142712718"},"html":{"href":"https://github.com/pyslackers/website/pull/100#discussion_r142712718"},"pull_request":{"href":"https://api.github.com/repos/pyslackers/website/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/pyslackers/website/pulls/100","id":144688004,"html_url":"https://github.com/pyslackers/website/pull/100","diff_url":"https://github.com/pyslackers/website/pull/100.diff","patch_url":"https://github.com/pyslackers/website/pull/100.patch","issue_url":"https://api.github.com/repos/pyslackers/website/issues/100","number":100,"state":"open","locked":false,"title":"Added slack notification on successful deployment","user":{"login":"pOctav","id":13433928,"avatar_url":"https://avatars3.githubusercontent.com/u/13433928?v=4","gravatar_id":"","url":"https://api.github.com/users/pOctav","html_url":"https://github.com/pOctav","followers_url":"https://api.github.com/users/pOctav/followers","following_url":"https://api.github.com/users/pOctav/following{/other_user}","gists_url":"https://api.github.com/users/pOctav/gists{/gist_id}","starred_url":"https://api.github.com/users/pOctav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pOctav/subscriptions","organizations_url":"https://api.github.com/users/pOctav/orgs","repos_url":"https://api.github.com/users/pOctav/repos","events_url":"https://api.github.com/users/pOctav/events{/privacy}","received_events_url":"https://api.github.com/users/pOctav/received_events","type":"User","site_admin":false},"body":"### Relevant Issue & Description\r\nResolves #69 \r\nSends a notification on slack when deployment is successful.\r\n\r\n**Important!**\r\nThe slack admin needs to create an app in the slack workspace and add the token inside the vault ( I left the token as an empty string until then ). \r\nI noticed there is an `oauth_token` already defined, but I don't know if it has the proper authorizations, so I added a new token ( slack.notifications.token )\r\n\r\nSlack has an example [here](https://api.slack.com/tutorials/slack-apps-hello-world) \r\nThe token should be added before merging, as it will cause an error in the deployment play\r\n","created_at":"2017-10-04T14:38:37Z","updated_at":"2017-10-04T15:53:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b3a1d33a63bc0c2ea31e54028d1b5ba6eca0ebf","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/pyslackers/website/pulls/100/commits","review_comments_url":"https://api.github.com/repos/pyslackers/website/pulls/100/comments","review_comment_url":"https://api.github.com/repos/pyslackers/website/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pyslackers/website/issues/100/comments","statuses_url":"https://api.github.com/repos/pyslackers/website/statuses/4d3415eca5355f48d25cd67fc786f41bb41921ea","head":{"label":"pOctav:master","ref":"master","sha":"4d3415eca5355f48d25cd67fc786f41bb41921ea","user":{"login":"pOctav","id":13433928,"avatar_url":"https://avatars3.githubusercontent.com/u/13433928?v=4","gravatar_id":"","url":"https://api.github.com/users/pOctav","html_url":"https://github.com/pOctav","followers_url":"https://api.github.com/users/pOctav/followers","following_url":"https://api.github.com/users/pOctav/following{/other_user}","gists_url":"https://api.github.com/users/pOctav/gists{/gist_id}","starred_url":"https://api.github.com/users/pOctav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pOctav/subscriptions","organizations_url":"https://api.github.com/users/pOctav/orgs","repos_url":"https://api.github.com/users/pOctav/repos","events_url":"https://api.github.com/users/pOctav/events{/privacy}","received_events_url":"https://api.github.com/users/pOctav/received_events","type":"User","site_admin":false},"repo":{"id":105766382,"name":"website","full_name":"pOctav/website","owner":{"login":"pOctav","id":13433928,"avatar_url":"https://avatars3.githubusercontent.com/u/13433928?v=4","gravatar_id":"","url":"https://api.github.com/users/pOctav","html_url":"https://github.com/pOctav","followers_url":"https://api.github.com/users/pOctav/followers","following_url":"https://api.github.com/users/pOctav/following{/other_user}","gists_url":"https://api.github.com/users/pOctav/gists{/gist_id}","starred_url":"https://api.github.com/users/pOctav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pOctav/subscriptions","organizations_url":"https://api.github.com/users/pOctav/orgs","repos_url":"https://api.github.com/users/pOctav/repos","events_url":"https://api.github.com/users/pOctav/events{/privacy}","received_events_url":"https://api.github.com/users/pOctav/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pOctav/website","description":"PySlackers website for invites and learning resources","fork":true,"url":"https://api.github.com/repos/pOctav/website","forks_url":"https://api.github.com/repos/pOctav/website/forks","keys_url":"https://api.github.com/repos/pOctav/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pOctav/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pOctav/website/teams","hooks_url":"https://api.github.com/repos/pOctav/website/hooks","issue_events_url":"https://api.github.com/repos/pOctav/website/issues/events{/number}","events_url":"https://api.github.com/repos/pOctav/website/events","assignees_url":"https://api.github.com/repos/pOctav/website/assignees{/user}","branches_url":"https://api.github.com/repos/pOctav/website/branches{/branch}","tags_url":"https://api.github.com/repos/pOctav/website/tags","blobs_url":"https://api.github.com/repos/pOctav/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pOctav/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pOctav/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/pOctav/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pOctav/website/statuses/{sha}","languages_url":"https://api.github.com/repos/pOctav/website/languages","stargazers_url":"https://api.github.com/repos/pOctav/website/stargazers","contributors_url":"https://api.github.com/repos/pOctav/website/contributors","subscribers_url":"https://api.github.com/repos/pOctav/website/subscribers","subscription_url":"https://api.github.com/repos/pOctav/website/subscription","commits_url":"https://api.github.com/repos/pOctav/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/pOctav/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/pOctav/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/pOctav/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/pOctav/website/contents/{+path}","compare_url":"https://api.github.com/repos/pOctav/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pOctav/website/merges","archive_url":"https://api.github.com/repos/pOctav/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pOctav/website/downloads","issues_url":"https://api.github.com/repos/pOctav/website/issues{/number}","pulls_url":"https://api.github.com/repos/pOctav/website/pulls{/number}","milestones_url":"https://api.github.com/repos/pOctav/website/milestones{/number}","notifications_url":"https://api.github.com/repos/pOctav/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pOctav/website/labels{/name}","releases_url":"https://api.github.com/repos/pOctav/website/releases{/id}","deployments_url":"https://api.github.com/repos/pOctav/website/deployments","created_at":"2017-10-04T12:35:32Z","updated_at":"2017-10-04T12:35:34Z","pushed_at":"2017-10-04T12:39:25Z","git_url":"git://github.com/pOctav/website.git","ssh_url":"git@github.com:pOctav/website.git","clone_url":"https://github.com/pOctav/website.git","svn_url":"https://github.com/pOctav/website","homepage":"https://pyslackers.com","size":988,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"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":"pyslackers:master","ref":"master","sha":"120df40c0b3fd291439425da14a0e3cb5123038f","user":{"login":"pyslackers","id":28457137,"avatar_url":"https://avatars0.githubusercontent.com/u/28457137?v=4","gravatar_id":"","url":"https://api.github.com/users/pyslackers","html_url":"https://github.com/pyslackers","followers_url":"https://api.github.com/users/pyslackers/followers","following_url":"https://api.github.com/users/pyslackers/following{/other_user}","gists_url":"https://api.github.com/users/pyslackers/gists{/gist_id}","starred_url":"https://api.github.com/users/pyslackers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyslackers/subscriptions","organizations_url":"https://api.github.com/users/pyslackers/orgs","repos_url":"https://api.github.com/users/pyslackers/repos","events_url":"https://api.github.com/users/pyslackers/events{/privacy}","received_events_url":"https://api.github.com/users/pyslackers/received_events","type":"Organization","site_admin":false},"repo":{"id":96162353,"name":"website","full_name":"pyslackers/website","owner":{"login":"pyslackers","id":28457137,"avatar_url":"https://avatars0.githubusercontent.com/u/28457137?v=4","gravatar_id":"","url":"https://api.github.com/users/pyslackers","html_url":"https://github.com/pyslackers","followers_url":"https://api.github.com/users/pyslackers/followers","following_url":"https://api.github.com/users/pyslackers/following{/other_user}","gists_url":"https://api.github.com/users/pyslackers/gists{/gist_id}","starred_url":"https://api.github.com/users/pyslackers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyslackers/subscriptions","organizations_url":"https://api.github.com/users/pyslackers/orgs","repos_url":"https://api.github.com/users/pyslackers/repos","events_url":"https://api.github.com/users/pyslackers/events{/privacy}","received_events_url":"https://api.github.com/users/pyslackers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pyslackers/website","description":"PySlackers website for invites and learning resources","fork":false,"url":"https://api.github.com/repos/pyslackers/website","forks_url":"https://api.github.com/repos/pyslackers/website/forks","keys_url":"https://api.github.com/repos/pyslackers/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pyslackers/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pyslackers/website/teams","hooks_url":"https://api.github.com/repos/pyslackers/website/hooks","issue_events_url":"https://api.github.com/repos/pyslackers/website/issues/events{/number}","events_url":"https://api.github.com/repos/pyslackers/website/events","assignees_url":"https://api.github.com/repos/pyslackers/website/assignees{/user}","branches_url":"https://api.github.com/repos/pyslackers/website/branches{/branch}","tags_url":"https://api.github.com/repos/pyslackers/website/tags","blobs_url":"https://api.github.com/repos/pyslackers/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pyslackers/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pyslackers/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/pyslackers/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pyslackers/website/statuses/{sha}","languages_url":"https://api.github.com/repos/pyslackers/website/languages","stargazers_url":"https://api.github.com/repos/pyslackers/website/stargazers","contributors_url":"https://api.github.com/repos/pyslackers/website/contributors","subscribers_url":"https://api.github.com/repos/pyslackers/website/subscribers","subscription_url":"https://api.github.com/repos/pyslackers/website/subscription","commits_url":"https://api.github.com/repos/pyslackers/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/pyslackers/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/pyslackers/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/pyslackers/website/issues/comments{/number}","contents_url":"https://api.github.com/repos/pyslackers/website/contents/{+path}","compare_url":"https://api.github.com/repos/pyslackers/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pyslackers/website/merges","archive_url":"https://api.github.com/repos/pyslackers/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pyslackers/website/downloads","issues_url":"https://api.github.com/repos/pyslackers/website/issues{/number}","pulls_url":"https://api.github.com/repos/pyslackers/website/pulls{/number}","milestones_url":"https://api.github.com/repos/pyslackers/website/milestones{/number}","notifications_url":"https://api.github.com/repos/pyslackers/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pyslackers/website/labels{/name}","releases_url":"https://api.github.com/repos/pyslackers/website/releases{/id}","deployments_url":"https://api.github.com/repos/pyslackers/website/deployments","created_at":"2017-07-04T01:12:54Z","updated_at":"2017-09-22T04:56:40Z","pushed_at":"2017-10-04T14:38:38Z","git_url":"git://github.com/pyslackers/website.git","ssh_url":"git@github.com:pyslackers/website.git","clone_url":"https://github.com/pyslackers/website.git","svn_url":"https://github.com/pyslackers/website","homepage":"https://pyslackers.com","size":987,"stargazers_count":17,"watchers_count":17,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":19,"forks":13,"open_issues":19,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pyslackers/website/pulls/100"},"html":{"href":"https://github.com/pyslackers/website/pull/100"},"issue":{"href":"https://api.github.com/repos/pyslackers/website/issues/100"},"comments":{"href":"https://api.github.com/repos/pyslackers/website/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/pyslackers/website/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/pyslackers/website/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pyslackers/website/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/pyslackers/website/statuses/4d3415eca5355f48d25cd67fc786f41bb41921ea"}},"author_association":"NONE"}}
{"actor":{"display_login":"mrasband"}}