{"action":"created","comment":{"url":"https://api.github.com/repos/codeclimate/codeclimate-services/pulls/comments/59913715","id":59913715,"diff_hunk":"@@ -0,0 +1,47 @@\n+#!/bin/sh\n+#\n+# Open a PR for releasing a new version of this repository.\n+#\n+# Usage: bin/prep-release VERSION\n+#\n+###\n+set -e\n+\n+if [ -z \"$1\" ]; then\n+  echo \"usage: bin/prep-release VERSION\" >&2\n+  exit 64\n+fi\n+\n+version=$1\n+old_version=$(< VERSION)\n+branch=\"release-$version\"\n+\n+if ! bundle exec rake; then\n+  echo \"test failure, not releasing\" >&2\n+  exit 1\n+fi\n+\n+printf \"RELEASE %s => %s\\n\" \"$old_version\" \"$version\"\n+git checkout master\n+git pull\n+\n+git checkout -b \"$branch\"\n+\n+printf \"%s\\n\" \"$version\" > VERSION\n+bundle\n+git add VERSION Gemfile.lock\n+git commit -m \"Release v$version\"\n+git push origin \"$branch\"\n+\n+branch_head=$(git rev-parse --short $branch)\n+if command -v hub > /dev/null 2>&1; then\n+  hub pull-request -F - <<EOF\n+Release v$version\n+\n+https://github.com/codeclimate/codeclimate/compare/v$old_version...$branch_head","path":"bin/prep-release","position":null,"original_position":41,"commit_id":"d522b59f17dcef7e137a399ad015518613457034","original_commit_id":"4c2281926b7f2256e0b058dce0963983965e880f","user":{"login":"ABaldwinHunter","id":8718443,"avatar_url":"https://avatars.githubusercontent.com/u/8718443?v=3","gravatar_id":"","url":"https://api.github.com/users/ABaldwinHunter","html_url":"https://github.com/ABaldwinHunter","followers_url":"https://api.github.com/users/ABaldwinHunter/followers","following_url":"https://api.github.com/users/ABaldwinHunter/following{/other_user}","gists_url":"https://api.github.com/users/ABaldwinHunter/gists{/gist_id}","starred_url":"https://api.github.com/users/ABaldwinHunter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ABaldwinHunter/subscriptions","organizations_url":"https://api.github.com/users/ABaldwinHunter/orgs","repos_url":"https://api.github.com/users/ABaldwinHunter/repos","events_url":"https://api.github.com/users/ABaldwinHunter/events{/privacy}","received_events_url":"https://api.github.com/users/ABaldwinHunter/received_events","type":"User","site_admin":false},"body":"ah good catch, thanks!","created_at":"2016-04-15T17:53:10Z","updated_at":"2016-04-15T17:53:10Z","html_url":"https://github.com/codeclimate/codeclimate-services/pull/91#discussion_r59913715","pull_request_url":"https://api.github.com/repos/codeclimate/codeclimate-services/pulls/91","_links":{"self":{"href":"https://api.github.com/repos/codeclimate/codeclimate-services/pulls/comments/59913715"},"html":{"href":"https://github.com/codeclimate/codeclimate-services/pull/91#discussion_r59913715"},"pull_request":{"href":"https://api.github.com/repos/codeclimate/codeclimate-services/pulls/91"}}},"pull_request":{"url":"https://api.github.com/repos/codeclimate/codeclimate-services/pulls/91","id":66678672,"html_url":"https://github.com/codeclimate/codeclimate-services/pull/91","diff_url":"https://github.com/codeclimate/codeclimate-services/pull/91.diff","patch_url":"https://github.com/codeclimate/codeclimate-services/pull/91.patch","issue_url":"https://api.github.com/repos/codeclimate/codeclimate-services/issues/91","number":91,"state":"open","locked":false,"title":"Add bin tasks to streamline release process","user":{"login":"ABaldwinHunter","id":8718443,"avatar_url":"https://avatars.githubusercontent.com/u/8718443?v=3","gravatar_id":"","url":"https://api.github.com/users/ABaldwinHunter","html_url":"https://github.com/ABaldwinHunter","followers_url":"https://api.github.com/users/ABaldwinHunter/followers","following_url":"https://api.github.com/users/ABaldwinHunter/following{/other_user}","gists_url":"https://api.github.com/users/ABaldwinHunter/gists{/gist_id}","starred_url":"https://api.github.com/users/ABaldwinHunter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ABaldwinHunter/subscriptions","organizations_url":"https://api.github.com/users/ABaldwinHunter/orgs","repos_url":"https://api.github.com/users/ABaldwinHunter/repos","events_url":"https://api.github.com/users/ABaldwinHunter/events{/privacy}","received_events_url":"https://api.github.com/users/ABaldwinHunter/received_events","type":"User","site_admin":false},"body":"@codeclimate/review ","created_at":"2016-04-15T17:41:44Z","updated_at":"2016-04-15T17:53:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a396fd4992261da24cf53540482c7d6d5aad0e87","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codeclimate/codeclimate-services/pulls/91/commits","review_comments_url":"https://api.github.com/repos/codeclimate/codeclimate-services/pulls/91/comments","review_comment_url":"https://api.github.com/repos/codeclimate/codeclimate-services/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeclimate/codeclimate-services/issues/91/comments","statuses_url":"https://api.github.com/repos/codeclimate/codeclimate-services/statuses/d522b59f17dcef7e137a399ad015518613457034","head":{"label":"codeclimate:abh-release-process","ref":"abh-release-process","sha":"d522b59f17dcef7e137a399ad015518613457034","user":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"repo":{"id":14462314,"name":"codeclimate-services","full_name":"codeclimate/codeclimate-services","owner":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeclimate/codeclimate-services","description":"Code Climate services","fork":false,"url":"https://api.github.com/repos/codeclimate/codeclimate-services","forks_url":"https://api.github.com/repos/codeclimate/codeclimate-services/forks","keys_url":"https://api.github.com/repos/codeclimate/codeclimate-services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeclimate/codeclimate-services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeclimate/codeclimate-services/teams","hooks_url":"https://api.github.com/repos/codeclimate/codeclimate-services/hooks","issue_events_url":"https://api.github.com/repos/codeclimate/codeclimate-services/issues/events{/number}","events_url":"https://api.github.com/repos/codeclimate/codeclimate-services/events","assignees_url":"https://api.github.com/repos/codeclimate/codeclimate-services/assignees{/user}","branches_url":"https://api.github.com/repos/codeclimate/codeclimate-services/branches{/branch}","tags_url":"https://api.github.com/repos/codeclimate/codeclimate-services/tags","blobs_url":"https://api.github.com/repos/codeclimate/codeclimate-services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeclimate/codeclimate-services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeclimate/codeclimate-services/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeclimate/codeclimate-services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeclimate/codeclimate-services/statuses/{sha}","languages_url":"https://api.github.com/repos/codeclimate/codeclimate-services/languages","stargazers_url":"https://api.github.com/repos/codeclimate/codeclimate-services/stargazers","contributors_url":"https://api.github.com/repos/codeclimate/codeclimate-services/contributors","subscribers_url":"https://api.github.com/repos/codeclimate/codeclimate-services/subscribers","subscription_url":"https://api.github.com/repos/codeclimate/codeclimate-services/subscription","commits_url":"https://api.github.com/repos/codeclimate/codeclimate-services/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeclimate/codeclimate-services/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeclimate/codeclimate-services/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeclimate/codeclimate-services/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeclimate/codeclimate-services/contents/{+path}","compare_url":"https://api.github.com/repos/codeclimate/codeclimate-services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeclimate/codeclimate-services/merges","archive_url":"https://api.github.com/repos/codeclimate/codeclimate-services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeclimate/codeclimate-services/downloads","issues_url":"https://api.github.com/repos/codeclimate/codeclimate-services/issues{/number}","pulls_url":"https://api.github.com/repos/codeclimate/codeclimate-services/pulls{/number}","milestones_url":"https://api.github.com/repos/codeclimate/codeclimate-services/milestones{/number}","notifications_url":"https://api.github.com/repos/codeclimate/codeclimate-services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeclimate/codeclimate-services/labels{/name}","releases_url":"https://api.github.com/repos/codeclimate/codeclimate-services/releases{/id}","deployments_url":"https://api.github.com/repos/codeclimate/codeclimate-services/deployments","created_at":"2013-11-17T06:22:37Z","updated_at":"2016-02-17T20:06:19Z","pushed_at":"2016-04-15T17:52:58Z","git_url":"git://github.com/codeclimate/codeclimate-services.git","ssh_url":"git@github.com:codeclimate/codeclimate-services.git","clone_url":"https://github.com/codeclimate/codeclimate-services.git","svn_url":"https://github.com/codeclimate/codeclimate-services","homepage":null,"size":394,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":8,"default_branch":"master"}},"base":{"label":"codeclimate:master","ref":"master","sha":"22219698499e78d606ec6de72d15618129b6fb70","user":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"repo":{"id":14462314,"name":"codeclimate-services","full_name":"codeclimate/codeclimate-services","owner":{"login":"codeclimate","id":789641,"avatar_url":"https://avatars.githubusercontent.com/u/789641?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclimate","html_url":"https://github.com/codeclimate","followers_url":"https://api.github.com/users/codeclimate/followers","following_url":"https://api.github.com/users/codeclimate/following{/other_user}","gists_url":"https://api.github.com/users/codeclimate/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclimate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclimate/subscriptions","organizations_url":"https://api.github.com/users/codeclimate/orgs","repos_url":"https://api.github.com/users/codeclimate/repos","events_url":"https://api.github.com/users/codeclimate/events{/privacy}","received_events_url":"https://api.github.com/users/codeclimate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeclimate/codeclimate-services","description":"Code Climate services","fork":false,"url":"https://api.github.com/repos/codeclimate/codeclimate-services","forks_url":"https://api.github.com/repos/codeclimate/codeclimate-services/forks","keys_url":"https://api.github.com/repos/codeclimate/codeclimate-services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeclimate/codeclimate-services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeclimate/codeclimate-services/teams","hooks_url":"https://api.github.com/repos/codeclimate/codeclimate-services/hooks","issue_events_url":"https://api.github.com/repos/codeclimate/codeclimate-services/issues/events{/number}","events_url":"https://api.github.com/repos/codeclimate/codeclimate-services/events","assignees_url":"https://api.github.com/repos/codeclimate/codeclimate-services/assignees{/user}","branches_url":"https://api.github.com/repos/codeclimate/codeclimate-services/branches{/branch}","tags_url":"https://api.github.com/repos/codeclimate/codeclimate-services/tags","blobs_url":"https://api.github.com/repos/codeclimate/codeclimate-services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeclimate/codeclimate-services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeclimate/codeclimate-services/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeclimate/codeclimate-services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeclimate/codeclimate-services/statuses/{sha}","languages_url":"https://api.github.com/repos/codeclimate/codeclimate-services/languages","stargazers_url":"https://api.github.com/repos/codeclimate/codeclimate-services/stargazers","contributors_url":"https://api.github.com/repos/codeclimate/codeclimate-services/contributors","subscribers_url":"https://api.github.com/repos/codeclimate/codeclimate-services/subscribers","subscription_url":"https://api.github.com/repos/codeclimate/codeclimate-services/subscription","commits_url":"https://api.github.com/repos/codeclimate/codeclimate-services/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeclimate/codeclimate-services/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeclimate/codeclimate-services/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeclimate/codeclimate-services/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeclimate/codeclimate-services/contents/{+path}","compare_url":"https://api.github.com/repos/codeclimate/codeclimate-services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeclimate/codeclimate-services/merges","archive_url":"https://api.github.com/repos/codeclimate/codeclimate-services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeclimate/codeclimate-services/downloads","issues_url":"https://api.github.com/repos/codeclimate/codeclimate-services/issues{/number}","pulls_url":"https://api.github.com/repos/codeclimate/codeclimate-services/pulls{/number}","milestones_url":"https://api.github.com/repos/codeclimate/codeclimate-services/milestones{/number}","notifications_url":"https://api.github.com/repos/codeclimate/codeclimate-services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeclimate/codeclimate-services/labels{/name}","releases_url":"https://api.github.com/repos/codeclimate/codeclimate-services/releases{/id}","deployments_url":"https://api.github.com/repos/codeclimate/codeclimate-services/deployments","created_at":"2013-11-17T06:22:37Z","updated_at":"2016-02-17T20:06:19Z","pushed_at":"2016-04-15T17:52:58Z","git_url":"git://github.com/codeclimate/codeclimate-services.git","ssh_url":"git@github.com:codeclimate/codeclimate-services.git","clone_url":"https://github.com/codeclimate/codeclimate-services.git","svn_url":"https://github.com/codeclimate/codeclimate-services","homepage":null,"size":394,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeclimate/codeclimate-services/pulls/91"},"html":{"href":"https://github.com/codeclimate/codeclimate-services/pull/91"},"issue":{"href":"https://api.github.com/repos/codeclimate/codeclimate-services/issues/91"},"comments":{"href":"https://api.github.com/repos/codeclimate/codeclimate-services/issues/91/comments"},"review_comments":{"href":"https://api.github.com/repos/codeclimate/codeclimate-services/pulls/91/comments"},"review_comment":{"href":"https://api.github.com/repos/codeclimate/codeclimate-services/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeclimate/codeclimate-services/pulls/91/commits"},"statuses":{"href":"https://api.github.com/repos/codeclimate/codeclimate-services/statuses/d522b59f17dcef7e137a399ad015518613457034"}}}}