{"action":"created","comment":{"url":"https://api.github.com/repos/chef/supermarket/pulls/comments/50472978","id":50472978,"diff_hunk":"@@ -5,31 +5,30 @@ addons:\n     - libxslt1-dev\n     - libxml2-dev\n before_install:\n-  - bundle config build.nokogiri --use-system-libraries\n+- bundle config build.nokogiri --use-system-libraries\n before_script:\n-  - psql -c 'create database supermarket_test;' -U postgres\n-  - bundle exec rake db:schema:load\n-bundler_args: --without development --jobs 7\n+- psql -c 'create database supermarket_test;' -U postgres\n+- bundle exec rake db:schema:load\n+branches:\n+  only:\n+  - master\n+bundler_args: \"--without development --jobs 7\"\n cache:\n-  - apt\n-  - bundler\n+- apt\n+- bundler\n env:\n   global:\n-    secure: \"rzoy57s+oxvw27HStU1VNHN7fS525ocQo11bmASbwG5Ax6I4X/dwWofQCoZPoGrXisMw5RQaa7e3bHJpATZsMJC67Sf6gbfSOIYY7tISXuCFh9q/19YPGltdwZkP3OgawEpufA8zcMHzD5nvWNXq4c4TKRdtX6mHQVIAOJ9u6qY=\"\n+    secure: rzoy57s+oxvw27HStU1VNHN7fS525ocQo11bmASbwG5Ax6I4X/dwWofQCoZPoGrXisMw5RQaa7e3bHJpATZsMJC67Sf6gbfSOIYY7tISXuCFh9q/19YPGltdwZkP3OgawEpufA8zcMHzD5nvWNXq4c4TKRdtX6mHQVIAOJ9u6qY=\n language: ruby\n notifications:\n   email: false\n-  webhooks:\n-    on_failure: always  # options: [always|never|change] default: always\n-    on_start: false     # default: false\n-    on_success: change  # options: [always|never|change] default: always\n-    urls:\n-      - https://webhooks.gitter.im/e/c2044eca72685a9b2ef7\n+  slack:\n+    secure: YhfiTSk7726AGK9H8761vEbu7wgKzh8zZll/PJuH2dmUy5myrV2nOxf7h6cbsEZcVA+dJ6jpGuLJnsoCBrneh2p7MKf+3wlwxZKE/sns0doMjf5L0i58guGEIVUbE6ydCoC+z65oniq5r/keS5kOs1Rate8wK2DvzgKN7Sjmx58=","path":".travis.yml","position":35,"original_position":35,"commit_id":"41b05e87f4d2b7bcafd34028811c184ed68fdc84","original_commit_id":"41b05e87f4d2b7bcafd34028811c184ed68fdc84","user":{"login":"robbkidd","id":517302,"avatar_url":"https://avatars.githubusercontent.com/u/517302?v=3","gravatar_id":"","url":"https://api.github.com/users/robbkidd","html_url":"https://github.com/robbkidd","followers_url":"https://api.github.com/users/robbkidd/followers","following_url":"https://api.github.com/users/robbkidd/following{/other_user}","gists_url":"https://api.github.com/users/robbkidd/gists{/gist_id}","starred_url":"https://api.github.com/users/robbkidd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbkidd/subscriptions","organizations_url":"https://api.github.com/users/robbkidd/orgs","repos_url":"https://api.github.com/users/robbkidd/repos","events_url":"https://api.github.com/users/robbkidd/events{/privacy}","received_events_url":"https://api.github.com/users/robbkidd/received_events","type":"User","site_admin":false},"body":"Encrypted credentials to authorize Travis to post things in our Slack room. That was added by following [the Slack/Travis integration instructions](https://docs.travis-ci.com/user/notifications/#Slack-notifications) through to the `travis encrypt ...` step at the end.","created_at":"2016-01-21T22:13:24Z","updated_at":"2016-01-21T22:13:24Z","html_url":"https://github.com/chef/supermarket/pull/1210#discussion_r50472978","pull_request_url":"https://api.github.com/repos/chef/supermarket/pulls/1210","_links":{"self":{"href":"https://api.github.com/repos/chef/supermarket/pulls/comments/50472978"},"html":{"href":"https://github.com/chef/supermarket/pull/1210#discussion_r50472978"},"pull_request":{"href":"https://api.github.com/repos/chef/supermarket/pulls/1210"}}},"pull_request":{"url":"https://api.github.com/repos/chef/supermarket/pulls/1210","id":56806272,"html_url":"https://github.com/chef/supermarket/pull/1210","diff_url":"https://github.com/chef/supermarket/pull/1210.diff","patch_url":"https://github.com/chef/supermarket/pull/1210.patch","issue_url":"https://api.github.com/repos/chef/supermarket/issues/1210","number":1210,"state":"open","locked":false,"title":"Add Slack notifications for test builds","user":{"login":"robbkidd","id":517302,"avatar_url":"https://avatars.githubusercontent.com/u/517302?v=3","gravatar_id":"","url":"https://api.github.com/users/robbkidd","html_url":"https://github.com/robbkidd","followers_url":"https://api.github.com/users/robbkidd/followers","following_url":"https://api.github.com/users/robbkidd/following{/other_user}","gists_url":"https://api.github.com/users/robbkidd/gists{/gist_id}","starred_url":"https://api.github.com/users/robbkidd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbkidd/subscriptions","organizations_url":"https://api.github.com/users/robbkidd/orgs","repos_url":"https://api.github.com/users/robbkidd/repos","events_url":"https://api.github.com/users/robbkidd/events{/privacy}","received_events_url":"https://api.github.com/users/robbkidd/received_events","type":"User","site_admin":false},"body":"* Enables Slack notifications of test builds to team's room\r\n* Leaves *enabled* testing of new commits on PRs\r\n* _Disables_ testing of pushes to any branch but `master`; prevents the double builds we've been seeing for every push to a PR\r\n\r\n\r\nAlso:\r\n* Removed gitter.im webhook for a room that doesn't appear to be in use.\r\n* Travis command line client really wanted to reformat the YAML. ","created_at":"2016-01-21T20:43:19Z","updated_at":"2016-01-21T22:13:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51186c2c00fe47f45a761f3512cb6a668bc0f817","assignee":{"login":"nellshamrell","id":813007,"avatar_url":"https://avatars.githubusercontent.com/u/813007?v=3","gravatar_id":"","url":"https://api.github.com/users/nellshamrell","html_url":"https://github.com/nellshamrell","followers_url":"https://api.github.com/users/nellshamrell/followers","following_url":"https://api.github.com/users/nellshamrell/following{/other_user}","gists_url":"https://api.github.com/users/nellshamrell/gists{/gist_id}","starred_url":"https://api.github.com/users/nellshamrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nellshamrell/subscriptions","organizations_url":"https://api.github.com/users/nellshamrell/orgs","repos_url":"https://api.github.com/users/nellshamrell/repos","events_url":"https://api.github.com/users/nellshamrell/events{/privacy}","received_events_url":"https://api.github.com/users/nellshamrell/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/chef/supermarket/pulls/1210/commits","review_comments_url":"https://api.github.com/repos/chef/supermarket/pulls/1210/comments","review_comment_url":"https://api.github.com/repos/chef/supermarket/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chef/supermarket/issues/1210/comments","statuses_url":"https://api.github.com/repos/chef/supermarket/statuses/41b05e87f4d2b7bcafd34028811c184ed68fdc84","head":{"label":"chef:robb/turn-on-slack-notifications","ref":"robb/turn-on-slack-notifications","sha":"41b05e87f4d2b7bcafd34028811c184ed68fdc84","user":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"repo":{"id":13633443,"name":"supermarket","full_name":"chef/supermarket","owner":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef/supermarket","description":"Chef's community platform","fork":false,"url":"https://api.github.com/repos/chef/supermarket","forks_url":"https://api.github.com/repos/chef/supermarket/forks","keys_url":"https://api.github.com/repos/chef/supermarket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/supermarket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/supermarket/teams","hooks_url":"https://api.github.com/repos/chef/supermarket/hooks","issue_events_url":"https://api.github.com/repos/chef/supermarket/issues/events{/number}","events_url":"https://api.github.com/repos/chef/supermarket/events","assignees_url":"https://api.github.com/repos/chef/supermarket/assignees{/user}","branches_url":"https://api.github.com/repos/chef/supermarket/branches{/branch}","tags_url":"https://api.github.com/repos/chef/supermarket/tags","blobs_url":"https://api.github.com/repos/chef/supermarket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/supermarket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/supermarket/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/supermarket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/supermarket/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/supermarket/languages","stargazers_url":"https://api.github.com/repos/chef/supermarket/stargazers","contributors_url":"https://api.github.com/repos/chef/supermarket/contributors","subscribers_url":"https://api.github.com/repos/chef/supermarket/subscribers","subscription_url":"https://api.github.com/repos/chef/supermarket/subscription","commits_url":"https://api.github.com/repos/chef/supermarket/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/supermarket/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/supermarket/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/supermarket/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef/supermarket/contents/{+path}","compare_url":"https://api.github.com/repos/chef/supermarket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/supermarket/merges","archive_url":"https://api.github.com/repos/chef/supermarket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/supermarket/downloads","issues_url":"https://api.github.com/repos/chef/supermarket/issues{/number}","pulls_url":"https://api.github.com/repos/chef/supermarket/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/supermarket/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/supermarket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/supermarket/labels{/name}","releases_url":"https://api.github.com/repos/chef/supermarket/releases{/id}","created_at":"2013-10-16T22:54:53Z","updated_at":"2016-01-15T23:16:38Z","pushed_at":"2016-01-21T21:42:39Z","git_url":"git://github.com/chef/supermarket.git","ssh_url":"git@github.com:chef/supermarket.git","clone_url":"https://github.com/chef/supermarket.git","svn_url":"https://github.com/chef/supermarket","homepage":"https://supermarket.chef.io/","size":4888,"stargazers_count":138,"watchers_count":138,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":43,"forks":53,"open_issues":43,"watchers":138,"default_branch":"master"}},"base":{"label":"chef:master","ref":"master","sha":"027435e5f9e483e3a4c991163ebc6ddfae70e184","user":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"repo":{"id":13633443,"name":"supermarket","full_name":"chef/supermarket","owner":{"login":"chef","id":29740,"avatar_url":"https://avatars.githubusercontent.com/u/29740?v=3","gravatar_id":"","url":"https://api.github.com/users/chef","html_url":"https://github.com/chef","followers_url":"https://api.github.com/users/chef/followers","following_url":"https://api.github.com/users/chef/following{/other_user}","gists_url":"https://api.github.com/users/chef/gists{/gist_id}","starred_url":"https://api.github.com/users/chef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef/subscriptions","organizations_url":"https://api.github.com/users/chef/orgs","repos_url":"https://api.github.com/users/chef/repos","events_url":"https://api.github.com/users/chef/events{/privacy}","received_events_url":"https://api.github.com/users/chef/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef/supermarket","description":"Chef's community platform","fork":false,"url":"https://api.github.com/repos/chef/supermarket","forks_url":"https://api.github.com/repos/chef/supermarket/forks","keys_url":"https://api.github.com/repos/chef/supermarket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef/supermarket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef/supermarket/teams","hooks_url":"https://api.github.com/repos/chef/supermarket/hooks","issue_events_url":"https://api.github.com/repos/chef/supermarket/issues/events{/number}","events_url":"https://api.github.com/repos/chef/supermarket/events","assignees_url":"https://api.github.com/repos/chef/supermarket/assignees{/user}","branches_url":"https://api.github.com/repos/chef/supermarket/branches{/branch}","tags_url":"https://api.github.com/repos/chef/supermarket/tags","blobs_url":"https://api.github.com/repos/chef/supermarket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef/supermarket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef/supermarket/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef/supermarket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef/supermarket/statuses/{sha}","languages_url":"https://api.github.com/repos/chef/supermarket/languages","stargazers_url":"https://api.github.com/repos/chef/supermarket/stargazers","contributors_url":"https://api.github.com/repos/chef/supermarket/contributors","subscribers_url":"https://api.github.com/repos/chef/supermarket/subscribers","subscription_url":"https://api.github.com/repos/chef/supermarket/subscription","commits_url":"https://api.github.com/repos/chef/supermarket/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef/supermarket/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef/supermarket/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef/supermarket/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef/supermarket/contents/{+path}","compare_url":"https://api.github.com/repos/chef/supermarket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef/supermarket/merges","archive_url":"https://api.github.com/repos/chef/supermarket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef/supermarket/downloads","issues_url":"https://api.github.com/repos/chef/supermarket/issues{/number}","pulls_url":"https://api.github.com/repos/chef/supermarket/pulls{/number}","milestones_url":"https://api.github.com/repos/chef/supermarket/milestones{/number}","notifications_url":"https://api.github.com/repos/chef/supermarket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef/supermarket/labels{/name}","releases_url":"https://api.github.com/repos/chef/supermarket/releases{/id}","created_at":"2013-10-16T22:54:53Z","updated_at":"2016-01-15T23:16:38Z","pushed_at":"2016-01-21T21:42:39Z","git_url":"git://github.com/chef/supermarket.git","ssh_url":"git@github.com:chef/supermarket.git","clone_url":"https://github.com/chef/supermarket.git","svn_url":"https://github.com/chef/supermarket","homepage":"https://supermarket.chef.io/","size":4888,"stargazers_count":138,"watchers_count":138,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":43,"forks":53,"open_issues":43,"watchers":138,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chef/supermarket/pulls/1210"},"html":{"href":"https://github.com/chef/supermarket/pull/1210"},"issue":{"href":"https://api.github.com/repos/chef/supermarket/issues/1210"},"comments":{"href":"https://api.github.com/repos/chef/supermarket/issues/1210/comments"},"review_comments":{"href":"https://api.github.com/repos/chef/supermarket/pulls/1210/comments"},"review_comment":{"href":"https://api.github.com/repos/chef/supermarket/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chef/supermarket/pulls/1210/commits"},"statuses":{"href":"https://api.github.com/repos/chef/supermarket/statuses/41b05e87f4d2b7bcafd34028811c184ed68fdc84"}}}}