{"action":"created","comment":{"url":"https://api.github.com/repos/thoughtbot/laptop/pulls/comments/49269419","id":49269419,"diff_hunk":"@@ -132,6 +132,9 @@ else\n   fancy_echo \"Homebrew already installed. Skipping ...\"\n fi\n \n+fancy_echo \"Uninstalling old Homebrew-Cask ...\"\n+brew uninstall --force brew-cask","path":"mac","position":5,"original_position":5,"commit_id":"246bf0cf4c8f4e65cc84a1c39ba68945579659b6","original_commit_id":"246bf0cf4c8f4e65cc84a1c39ba68945579659b6","user":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"body":"It'd be aesthetically pleasing to only run this if `brew-cask` is actually installed. Maybe wrap this in `if brew list | grep -Fq brew-cask`?\r\n\r\n(This exits 0 if brew-cask is not installed, so there's no harm as-is.)","created_at":"2016-01-09T23:26:04Z","updated_at":"2016-01-09T23:26:04Z","html_url":"https://github.com/thoughtbot/laptop/pull/427#discussion_r49269419","pull_request_url":"https://api.github.com/repos/thoughtbot/laptop/pulls/427","_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/laptop/pulls/comments/49269419"},"html":{"href":"https://github.com/thoughtbot/laptop/pull/427#discussion_r49269419"},"pull_request":{"href":"https://api.github.com/repos/thoughtbot/laptop/pulls/427"}}},"pull_request":{"url":"https://api.github.com/repos/thoughtbot/laptop/pulls/427","id":54914444,"html_url":"https://github.com/thoughtbot/laptop/pull/427","diff_url":"https://github.com/thoughtbot/laptop/pull/427.diff","patch_url":"https://github.com/thoughtbot/laptop/pull/427.patch","issue_url":"https://api.github.com/repos/thoughtbot/laptop/issues/427","number":427,"state":"open","locked":false,"title":"Migrate to built-in Homebrew-Cask","user":{"login":"croaky","id":198,"avatar_url":"https://avatars.githubusercontent.com/u/198?v=3","gravatar_id":"","url":"https://api.github.com/users/croaky","html_url":"https://github.com/croaky","followers_url":"https://api.github.com/users/croaky/followers","following_url":"https://api.github.com/users/croaky/following{/other_user}","gists_url":"https://api.github.com/users/croaky/gists{/gist_id}","starred_url":"https://api.github.com/users/croaky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/croaky/subscriptions","organizations_url":"https://api.github.com/users/croaky/orgs","repos_url":"https://api.github.com/users/croaky/repos","events_url":"https://api.github.com/users/croaky/events{/privacy}","received_events_url":"https://api.github.com/users/croaky/received_events","type":"User","site_admin":false},"body":"> Homebrew-Cask will now be kept up to date together with Homebrew\n\n> If you haven’t yet,\n> run `brew uninstall --force brew-cask; brew update`\n> to switch to the new system.\n\nhttps://github.com/caskroom/homebrew-cask/commit/e83c0099aaac27ab440b28bbca2ba1e0ec1a4d04\n\n> To start using Homebrew-Cask, you just need Homebrew installed.\n\nhttps://github.com/caskroom/homebrew-cask/commit/0d290b15e894c8db387f77e2586223368a04fea8","created_at":"2016-01-02T23:03:05Z","updated_at":"2016-01-09T23:26:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1149060c389d9487de6ff4f601509f806d6e2093","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thoughtbot/laptop/pulls/427/commits","review_comments_url":"https://api.github.com/repos/thoughtbot/laptop/pulls/427/comments","review_comment_url":"https://api.github.com/repos/thoughtbot/laptop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thoughtbot/laptop/issues/427/comments","statuses_url":"https://api.github.com/repos/thoughtbot/laptop/statuses/246bf0cf4c8f4e65cc84a1c39ba68945579659b6","head":{"label":"thoughtbot:brew-cask","ref":"brew-cask","sha":"246bf0cf4c8f4e65cc84a1c39ba68945579659b6","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":1688596,"name":"laptop","full_name":"thoughtbot/laptop","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/laptop","description":"A shell script which turns your OS X laptop into an awesome web development machine.","fork":false,"url":"https://api.github.com/repos/thoughtbot/laptop","forks_url":"https://api.github.com/repos/thoughtbot/laptop/forks","keys_url":"https://api.github.com/repos/thoughtbot/laptop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/laptop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/laptop/teams","hooks_url":"https://api.github.com/repos/thoughtbot/laptop/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/laptop/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/laptop/events","assignees_url":"https://api.github.com/repos/thoughtbot/laptop/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/laptop/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/laptop/tags","blobs_url":"https://api.github.com/repos/thoughtbot/laptop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/laptop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/laptop/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/laptop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/laptop/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/laptop/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/laptop/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/laptop/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/laptop/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/laptop/subscription","commits_url":"https://api.github.com/repos/thoughtbot/laptop/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/laptop/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/laptop/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/laptop/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/laptop/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/laptop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/laptop/merges","archive_url":"https://api.github.com/repos/thoughtbot/laptop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/laptop/downloads","issues_url":"https://api.github.com/repos/thoughtbot/laptop/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/laptop/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/laptop/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/laptop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/laptop/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/laptop/releases{/id}","created_at":"2011-05-01T18:18:44Z","updated_at":"2016-01-09T06:46:54Z","pushed_at":"2016-01-09T23:13:14Z","git_url":"git://github.com/thoughtbot/laptop.git","ssh_url":"git@github.com:thoughtbot/laptop.git","clone_url":"https://github.com/thoughtbot/laptop.git","svn_url":"https://github.com/thoughtbot/laptop","homepage":"https://thoughtbot.com/open-source","size":719,"stargazers_count":4913,"watchers_count":4913,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1190,"mirror_url":null,"open_issues_count":23,"forks":1190,"open_issues":23,"watchers":4913,"default_branch":"master"}},"base":{"label":"thoughtbot:master","ref":"master","sha":"36cd10402168da3ec8355577ccbb18c51c9fcd6a","user":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"repo":{"id":1688596,"name":"laptop","full_name":"thoughtbot/laptop","owner":{"login":"thoughtbot","id":6183,"avatar_url":"https://avatars.githubusercontent.com/u/6183?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtbot","html_url":"https://github.com/thoughtbot","followers_url":"https://api.github.com/users/thoughtbot/followers","following_url":"https://api.github.com/users/thoughtbot/following{/other_user}","gists_url":"https://api.github.com/users/thoughtbot/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtbot/subscriptions","organizations_url":"https://api.github.com/users/thoughtbot/orgs","repos_url":"https://api.github.com/users/thoughtbot/repos","events_url":"https://api.github.com/users/thoughtbot/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtbot/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thoughtbot/laptop","description":"A shell script which turns your OS X laptop into an awesome web development machine.","fork":false,"url":"https://api.github.com/repos/thoughtbot/laptop","forks_url":"https://api.github.com/repos/thoughtbot/laptop/forks","keys_url":"https://api.github.com/repos/thoughtbot/laptop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thoughtbot/laptop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thoughtbot/laptop/teams","hooks_url":"https://api.github.com/repos/thoughtbot/laptop/hooks","issue_events_url":"https://api.github.com/repos/thoughtbot/laptop/issues/events{/number}","events_url":"https://api.github.com/repos/thoughtbot/laptop/events","assignees_url":"https://api.github.com/repos/thoughtbot/laptop/assignees{/user}","branches_url":"https://api.github.com/repos/thoughtbot/laptop/branches{/branch}","tags_url":"https://api.github.com/repos/thoughtbot/laptop/tags","blobs_url":"https://api.github.com/repos/thoughtbot/laptop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thoughtbot/laptop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thoughtbot/laptop/git/refs{/sha}","trees_url":"https://api.github.com/repos/thoughtbot/laptop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thoughtbot/laptop/statuses/{sha}","languages_url":"https://api.github.com/repos/thoughtbot/laptop/languages","stargazers_url":"https://api.github.com/repos/thoughtbot/laptop/stargazers","contributors_url":"https://api.github.com/repos/thoughtbot/laptop/contributors","subscribers_url":"https://api.github.com/repos/thoughtbot/laptop/subscribers","subscription_url":"https://api.github.com/repos/thoughtbot/laptop/subscription","commits_url":"https://api.github.com/repos/thoughtbot/laptop/commits{/sha}","git_commits_url":"https://api.github.com/repos/thoughtbot/laptop/git/commits{/sha}","comments_url":"https://api.github.com/repos/thoughtbot/laptop/comments{/number}","issue_comment_url":"https://api.github.com/repos/thoughtbot/laptop/issues/comments{/number}","contents_url":"https://api.github.com/repos/thoughtbot/laptop/contents/{+path}","compare_url":"https://api.github.com/repos/thoughtbot/laptop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thoughtbot/laptop/merges","archive_url":"https://api.github.com/repos/thoughtbot/laptop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thoughtbot/laptop/downloads","issues_url":"https://api.github.com/repos/thoughtbot/laptop/issues{/number}","pulls_url":"https://api.github.com/repos/thoughtbot/laptop/pulls{/number}","milestones_url":"https://api.github.com/repos/thoughtbot/laptop/milestones{/number}","notifications_url":"https://api.github.com/repos/thoughtbot/laptop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thoughtbot/laptop/labels{/name}","releases_url":"https://api.github.com/repos/thoughtbot/laptop/releases{/id}","created_at":"2011-05-01T18:18:44Z","updated_at":"2016-01-09T06:46:54Z","pushed_at":"2016-01-09T23:13:14Z","git_url":"git://github.com/thoughtbot/laptop.git","ssh_url":"git@github.com:thoughtbot/laptop.git","clone_url":"https://github.com/thoughtbot/laptop.git","svn_url":"https://github.com/thoughtbot/laptop","homepage":"https://thoughtbot.com/open-source","size":719,"stargazers_count":4913,"watchers_count":4913,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1190,"mirror_url":null,"open_issues_count":23,"forks":1190,"open_issues":23,"watchers":4913,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thoughtbot/laptop/pulls/427"},"html":{"href":"https://github.com/thoughtbot/laptop/pull/427"},"issue":{"href":"https://api.github.com/repos/thoughtbot/laptop/issues/427"},"comments":{"href":"https://api.github.com/repos/thoughtbot/laptop/issues/427/comments"},"review_comments":{"href":"https://api.github.com/repos/thoughtbot/laptop/pulls/427/comments"},"review_comment":{"href":"https://api.github.com/repos/thoughtbot/laptop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thoughtbot/laptop/pulls/427/commits"},"statuses":{"href":"https://api.github.com/repos/thoughtbot/laptop/statuses/246bf0cf4c8f4e65cc84a1c39ba68945579659b6"}}}}