{"action":"created","comment":{"url":"https://api.github.com/repos/contentful/s3-package-repo/pulls/comments/64906340","id":64906340,"diff_hunk":"@@ -2,6 +2,36 @@\n \n set -eo pipefail\n \n+export SLACK_MSG_COLOUR=good\n+export SLACK_MSG_TITLE=\"deployment pipeline event\"\n+\n+notify_slack() {\n+\n+  if [ -z $SLACK_WEBHOOK ]; then\n+    echo \"SLACK_WEBHOOK not configured\"\n+    return\n+  fi\n+\n+  SLACK_EMOJI=${SLACK_EMOJI:-stopwatch}","path":"s3_package_deploy.sh","position":14,"original_position":14,"commit_id":"1e08d54a425b087d302c47522fa4f7fabab7fbc8","original_commit_id":"1e08d54a425b087d302c47522fa4f7fabab7fbc8","user":{"login":"danihodovic","id":5557301,"avatar_url":"https://avatars.githubusercontent.com/u/5557301?v=3","gravatar_id":"","url":"https://api.github.com/users/danihodovic","html_url":"https://github.com/danihodovic","followers_url":"https://api.github.com/users/danihodovic/followers","following_url":"https://api.github.com/users/danihodovic/following{/other_user}","gists_url":"https://api.github.com/users/danihodovic/gists{/gist_id}","starred_url":"https://api.github.com/users/danihodovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danihodovic/subscriptions","organizations_url":"https://api.github.com/users/danihodovic/orgs","repos_url":"https://api.github.com/users/danihodovic/repos","events_url":"https://api.github.com/users/danihodovic/events{/privacy}","received_events_url":"https://api.github.com/users/danihodovic/received_events","type":"User","site_admin":false},"body":"Why are two slack variables exported while this is not?","created_at":"2016-05-27T13:46:01Z","updated_at":"2016-05-27T13:46:01Z","html_url":"https://github.com/contentful/s3-package-repo/pull/6#discussion_r64906340","pull_request_url":"https://api.github.com/repos/contentful/s3-package-repo/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/contentful/s3-package-repo/pulls/comments/64906340"},"html":{"href":"https://github.com/contentful/s3-package-repo/pull/6#discussion_r64906340"},"pull_request":{"href":"https://api.github.com/repos/contentful/s3-package-repo/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/contentful/s3-package-repo/pulls/6","id":71714761,"html_url":"https://github.com/contentful/s3-package-repo/pull/6","diff_url":"https://github.com/contentful/s3-package-repo/pull/6.diff","patch_url":"https://github.com/contentful/s3-package-repo/pull/6.patch","issue_url":"https://api.github.com/repos/contentful/s3-package-repo/issues/6","number":6,"state":"open","locked":false,"title":"Slack notifications & syntax check","user":{"login":"elblivion","id":2480211,"avatar_url":"https://avatars.githubusercontent.com/u/2480211?v=3","gravatar_id":"","url":"https://api.github.com/users/elblivion","html_url":"https://github.com/elblivion","followers_url":"https://api.github.com/users/elblivion/followers","following_url":"https://api.github.com/users/elblivion/following{/other_user}","gists_url":"https://api.github.com/users/elblivion/gists{/gist_id}","starred_url":"https://api.github.com/users/elblivion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elblivion/subscriptions","organizations_url":"https://api.github.com/users/elblivion/orgs","repos_url":"https://api.github.com/users/elblivion/repos","events_url":"https://api.github.com/users/elblivion/events{/privacy}","received_events_url":"https://api.github.com/users/elblivion/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-05-27T13:42:47Z","updated_at":"2016-05-27T13:46:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2eeb09a8f1f37cd7d832bf1e77b5368b538a3317","assignee":{"login":"danihodovic","id":5557301,"avatar_url":"https://avatars.githubusercontent.com/u/5557301?v=3","gravatar_id":"","url":"https://api.github.com/users/danihodovic","html_url":"https://github.com/danihodovic","followers_url":"https://api.github.com/users/danihodovic/followers","following_url":"https://api.github.com/users/danihodovic/following{/other_user}","gists_url":"https://api.github.com/users/danihodovic/gists{/gist_id}","starred_url":"https://api.github.com/users/danihodovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danihodovic/subscriptions","organizations_url":"https://api.github.com/users/danihodovic/orgs","repos_url":"https://api.github.com/users/danihodovic/repos","events_url":"https://api.github.com/users/danihodovic/events{/privacy}","received_events_url":"https://api.github.com/users/danihodovic/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/contentful/s3-package-repo/pulls/6/commits","review_comments_url":"https://api.github.com/repos/contentful/s3-package-repo/pulls/6/comments","review_comment_url":"https://api.github.com/repos/contentful/s3-package-repo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/contentful/s3-package-repo/issues/6/comments","statuses_url":"https://api.github.com/repos/contentful/s3-package-repo/statuses/1e08d54a425b087d302c47522fa4f7fabab7fbc8","head":{"label":"contentful:slack","ref":"slack","sha":"1e08d54a425b087d302c47522fa4f7fabab7fbc8","user":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"repo":{"id":59577632,"name":"s3-package-repo","full_name":"contentful/s3-package-repo","owner":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/contentful/s3-package-repo","description":"","fork":false,"url":"https://api.github.com/repos/contentful/s3-package-repo","forks_url":"https://api.github.com/repos/contentful/s3-package-repo/forks","keys_url":"https://api.github.com/repos/contentful/s3-package-repo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contentful/s3-package-repo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contentful/s3-package-repo/teams","hooks_url":"https://api.github.com/repos/contentful/s3-package-repo/hooks","issue_events_url":"https://api.github.com/repos/contentful/s3-package-repo/issues/events{/number}","events_url":"https://api.github.com/repos/contentful/s3-package-repo/events","assignees_url":"https://api.github.com/repos/contentful/s3-package-repo/assignees{/user}","branches_url":"https://api.github.com/repos/contentful/s3-package-repo/branches{/branch}","tags_url":"https://api.github.com/repos/contentful/s3-package-repo/tags","blobs_url":"https://api.github.com/repos/contentful/s3-package-repo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contentful/s3-package-repo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contentful/s3-package-repo/git/refs{/sha}","trees_url":"https://api.github.com/repos/contentful/s3-package-repo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contentful/s3-package-repo/statuses/{sha}","languages_url":"https://api.github.com/repos/contentful/s3-package-repo/languages","stargazers_url":"https://api.github.com/repos/contentful/s3-package-repo/stargazers","contributors_url":"https://api.github.com/repos/contentful/s3-package-repo/contributors","subscribers_url":"https://api.github.com/repos/contentful/s3-package-repo/subscribers","subscription_url":"https://api.github.com/repos/contentful/s3-package-repo/subscription","commits_url":"https://api.github.com/repos/contentful/s3-package-repo/commits{/sha}","git_commits_url":"https://api.github.com/repos/contentful/s3-package-repo/git/commits{/sha}","comments_url":"https://api.github.com/repos/contentful/s3-package-repo/comments{/number}","issue_comment_url":"https://api.github.com/repos/contentful/s3-package-repo/issues/comments{/number}","contents_url":"https://api.github.com/repos/contentful/s3-package-repo/contents/{+path}","compare_url":"https://api.github.com/repos/contentful/s3-package-repo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contentful/s3-package-repo/merges","archive_url":"https://api.github.com/repos/contentful/s3-package-repo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contentful/s3-package-repo/downloads","issues_url":"https://api.github.com/repos/contentful/s3-package-repo/issues{/number}","pulls_url":"https://api.github.com/repos/contentful/s3-package-repo/pulls{/number}","milestones_url":"https://api.github.com/repos/contentful/s3-package-repo/milestones{/number}","notifications_url":"https://api.github.com/repos/contentful/s3-package-repo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contentful/s3-package-repo/labels{/name}","releases_url":"https://api.github.com/repos/contentful/s3-package-repo/releases{/id}","deployments_url":"https://api.github.com/repos/contentful/s3-package-repo/deployments","created_at":"2016-05-24T13:54:38Z","updated_at":"2016-05-25T14:26:53Z","pushed_at":"2016-05-27T13:42:48Z","git_url":"git://github.com/contentful/s3-package-repo.git","ssh_url":"git@github.com:contentful/s3-package-repo.git","clone_url":"https://github.com/contentful/s3-package-repo.git","svn_url":"https://github.com/contentful/s3-package-repo","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"contentful:master","ref":"master","sha":"6671be6c502cb0b2f4762ee45d8e58e44f59ee91","user":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"repo":{"id":59577632,"name":"s3-package-repo","full_name":"contentful/s3-package-repo","owner":{"login":"contentful","id":472182,"avatar_url":"https://avatars.githubusercontent.com/u/472182?v=3","gravatar_id":"","url":"https://api.github.com/users/contentful","html_url":"https://github.com/contentful","followers_url":"https://api.github.com/users/contentful/followers","following_url":"https://api.github.com/users/contentful/following{/other_user}","gists_url":"https://api.github.com/users/contentful/gists{/gist_id}","starred_url":"https://api.github.com/users/contentful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/contentful/subscriptions","organizations_url":"https://api.github.com/users/contentful/orgs","repos_url":"https://api.github.com/users/contentful/repos","events_url":"https://api.github.com/users/contentful/events{/privacy}","received_events_url":"https://api.github.com/users/contentful/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/contentful/s3-package-repo","description":"","fork":false,"url":"https://api.github.com/repos/contentful/s3-package-repo","forks_url":"https://api.github.com/repos/contentful/s3-package-repo/forks","keys_url":"https://api.github.com/repos/contentful/s3-package-repo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/contentful/s3-package-repo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/contentful/s3-package-repo/teams","hooks_url":"https://api.github.com/repos/contentful/s3-package-repo/hooks","issue_events_url":"https://api.github.com/repos/contentful/s3-package-repo/issues/events{/number}","events_url":"https://api.github.com/repos/contentful/s3-package-repo/events","assignees_url":"https://api.github.com/repos/contentful/s3-package-repo/assignees{/user}","branches_url":"https://api.github.com/repos/contentful/s3-package-repo/branches{/branch}","tags_url":"https://api.github.com/repos/contentful/s3-package-repo/tags","blobs_url":"https://api.github.com/repos/contentful/s3-package-repo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/contentful/s3-package-repo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/contentful/s3-package-repo/git/refs{/sha}","trees_url":"https://api.github.com/repos/contentful/s3-package-repo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/contentful/s3-package-repo/statuses/{sha}","languages_url":"https://api.github.com/repos/contentful/s3-package-repo/languages","stargazers_url":"https://api.github.com/repos/contentful/s3-package-repo/stargazers","contributors_url":"https://api.github.com/repos/contentful/s3-package-repo/contributors","subscribers_url":"https://api.github.com/repos/contentful/s3-package-repo/subscribers","subscription_url":"https://api.github.com/repos/contentful/s3-package-repo/subscription","commits_url":"https://api.github.com/repos/contentful/s3-package-repo/commits{/sha}","git_commits_url":"https://api.github.com/repos/contentful/s3-package-repo/git/commits{/sha}","comments_url":"https://api.github.com/repos/contentful/s3-package-repo/comments{/number}","issue_comment_url":"https://api.github.com/repos/contentful/s3-package-repo/issues/comments{/number}","contents_url":"https://api.github.com/repos/contentful/s3-package-repo/contents/{+path}","compare_url":"https://api.github.com/repos/contentful/s3-package-repo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/contentful/s3-package-repo/merges","archive_url":"https://api.github.com/repos/contentful/s3-package-repo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/contentful/s3-package-repo/downloads","issues_url":"https://api.github.com/repos/contentful/s3-package-repo/issues{/number}","pulls_url":"https://api.github.com/repos/contentful/s3-package-repo/pulls{/number}","milestones_url":"https://api.github.com/repos/contentful/s3-package-repo/milestones{/number}","notifications_url":"https://api.github.com/repos/contentful/s3-package-repo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/contentful/s3-package-repo/labels{/name}","releases_url":"https://api.github.com/repos/contentful/s3-package-repo/releases{/id}","deployments_url":"https://api.github.com/repos/contentful/s3-package-repo/deployments","created_at":"2016-05-24T13:54:38Z","updated_at":"2016-05-25T14:26:53Z","pushed_at":"2016-05-27T13:42:48Z","git_url":"git://github.com/contentful/s3-package-repo.git","ssh_url":"git@github.com:contentful/s3-package-repo.git","clone_url":"https://github.com/contentful/s3-package-repo.git","svn_url":"https://github.com/contentful/s3-package-repo","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/contentful/s3-package-repo/pulls/6"},"html":{"href":"https://github.com/contentful/s3-package-repo/pull/6"},"issue":{"href":"https://api.github.com/repos/contentful/s3-package-repo/issues/6"},"comments":{"href":"https://api.github.com/repos/contentful/s3-package-repo/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/contentful/s3-package-repo/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/contentful/s3-package-repo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/contentful/s3-package-repo/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/contentful/s3-package-repo/statuses/1e08d54a425b087d302c47522fa4f7fabab7fbc8"}}}}
{"actor":{"display_login":"danihodovic"}}