{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/sweeperio/flay/pulls/2","id":54821677,"html_url":"https://github.com/sweeperio/flay/pull/2","diff_url":"https://github.com/sweeperio/flay/pull/2.diff","patch_url":"https://github.com/sweeperio/flay/pull/2.patch","issue_url":"https://api.github.com/repos/sweeperio/flay/issues/2","number":2,"state":"open","locked":false,"title":"Release command","user":{"login":"pseudomuto","id":4748863,"avatar_url":"https://avatars.githubusercontent.com/u/4748863?v=3","gravatar_id":"","url":"https://api.github.com/users/pseudomuto","html_url":"https://github.com/pseudomuto","followers_url":"https://api.github.com/users/pseudomuto/followers","following_url":"https://api.github.com/users/pseudomuto/following{/other_user}","gists_url":"https://api.github.com/users/pseudomuto/gists{/gist_id}","starred_url":"https://api.github.com/users/pseudomuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pseudomuto/subscriptions","organizations_url":"https://api.github.com/users/pseudomuto/orgs","repos_url":"https://api.github.com/users/pseudomuto/repos","events_url":"https://api.github.com/users/pseudomuto/events{/privacy}","received_events_url":"https://api.github.com/users/pseudomuto/received_events","type":"User","site_admin":false},"body":"# The Problem\r\n\r\nReleasing new versions of a cookbook is more difficult than it should be. I'm trying to fix that here.\r\n\r\n# The Solution\r\n\r\nModelled after bundler's `rake release`, I've added `chef exec flay release`. Which will do the following:\r\n\r\n* `git tag -a -m \"Version #{version}\" v#{version}` - unless the tag already exists\r\n* `git push && git push --tags`\r\n* `chef exec berks install`\r\n* `chef exec berks upload --no-ssl-verify`\r\n\r\nThe script fails immediately by exiting with `1` if:\r\n\r\n* _metadata.rb_ doesn't exist or contains a bad (or nil) version\r\n* There are any uncommitted changes in git","created_at":"2015-12-30T19:02:53Z","updated_at":"2015-12-30T19:02:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sweeperio/flay/pulls/2/commits","review_comments_url":"https://api.github.com/repos/sweeperio/flay/pulls/2/comments","review_comment_url":"https://api.github.com/repos/sweeperio/flay/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sweeperio/flay/issues/2/comments","statuses_url":"https://api.github.com/repos/sweeperio/flay/statuses/f96a876f60418121e58a1f5d41a31c7358c0668d","head":{"label":"sweeperio:release_command","ref":"release_command","sha":"f96a876f60418121e58a1f5d41a31c7358c0668d","user":{"login":"sweeperio","id":13475198,"avatar_url":"https://avatars.githubusercontent.com/u/13475198?v=3","gravatar_id":"","url":"https://api.github.com/users/sweeperio","html_url":"https://github.com/sweeperio","followers_url":"https://api.github.com/users/sweeperio/followers","following_url":"https://api.github.com/users/sweeperio/following{/other_user}","gists_url":"https://api.github.com/users/sweeperio/gists{/gist_id}","starred_url":"https://api.github.com/users/sweeperio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweeperio/subscriptions","organizations_url":"https://api.github.com/users/sweeperio/orgs","repos_url":"https://api.github.com/users/sweeperio/repos","events_url":"https://api.github.com/users/sweeperio/events{/privacy}","received_events_url":"https://api.github.com/users/sweeperio/received_events","type":"Organization","site_admin":false},"repo":{"id":48667143,"name":"flay","full_name":"sweeperio/flay","owner":{"login":"sweeperio","id":13475198,"avatar_url":"https://avatars.githubusercontent.com/u/13475198?v=3","gravatar_id":"","url":"https://api.github.com/users/sweeperio","html_url":"https://github.com/sweeperio","followers_url":"https://api.github.com/users/sweeperio/followers","following_url":"https://api.github.com/users/sweeperio/following{/other_user}","gists_url":"https://api.github.com/users/sweeperio/gists{/gist_id}","starred_url":"https://api.github.com/users/sweeperio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweeperio/subscriptions","organizations_url":"https://api.github.com/users/sweeperio/orgs","repos_url":"https://api.github.com/users/sweeperio/repos","events_url":"https://api.github.com/users/sweeperio/events{/privacy}","received_events_url":"https://api.github.com/users/sweeperio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sweeperio/flay","description":"A Chef cookbook generator using [chef-gen-flavors](https://rubygems.org/gems/chef-gen-flavors)","fork":false,"url":"https://api.github.com/repos/sweeperio/flay","forks_url":"https://api.github.com/repos/sweeperio/flay/forks","keys_url":"https://api.github.com/repos/sweeperio/flay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sweeperio/flay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sweeperio/flay/teams","hooks_url":"https://api.github.com/repos/sweeperio/flay/hooks","issue_events_url":"https://api.github.com/repos/sweeperio/flay/issues/events{/number}","events_url":"https://api.github.com/repos/sweeperio/flay/events","assignees_url":"https://api.github.com/repos/sweeperio/flay/assignees{/user}","branches_url":"https://api.github.com/repos/sweeperio/flay/branches{/branch}","tags_url":"https://api.github.com/repos/sweeperio/flay/tags","blobs_url":"https://api.github.com/repos/sweeperio/flay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sweeperio/flay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sweeperio/flay/git/refs{/sha}","trees_url":"https://api.github.com/repos/sweeperio/flay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sweeperio/flay/statuses/{sha}","languages_url":"https://api.github.com/repos/sweeperio/flay/languages","stargazers_url":"https://api.github.com/repos/sweeperio/flay/stargazers","contributors_url":"https://api.github.com/repos/sweeperio/flay/contributors","subscribers_url":"https://api.github.com/repos/sweeperio/flay/subscribers","subscription_url":"https://api.github.com/repos/sweeperio/flay/subscription","commits_url":"https://api.github.com/repos/sweeperio/flay/commits{/sha}","git_commits_url":"https://api.github.com/repos/sweeperio/flay/git/commits{/sha}","comments_url":"https://api.github.com/repos/sweeperio/flay/comments{/number}","issue_comment_url":"https://api.github.com/repos/sweeperio/flay/issues/comments{/number}","contents_url":"https://api.github.com/repos/sweeperio/flay/contents/{+path}","compare_url":"https://api.github.com/repos/sweeperio/flay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sweeperio/flay/merges","archive_url":"https://api.github.com/repos/sweeperio/flay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sweeperio/flay/downloads","issues_url":"https://api.github.com/repos/sweeperio/flay/issues{/number}","pulls_url":"https://api.github.com/repos/sweeperio/flay/pulls{/number}","milestones_url":"https://api.github.com/repos/sweeperio/flay/milestones{/number}","notifications_url":"https://api.github.com/repos/sweeperio/flay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sweeperio/flay/labels{/name}","releases_url":"https://api.github.com/repos/sweeperio/flay/releases{/id}","created_at":"2015-12-28T01:15:09Z","updated_at":"2015-12-28T01:15:57Z","pushed_at":"2015-12-30T18:56:30Z","git_url":"git://github.com/sweeperio/flay.git","ssh_url":"git@github.com:sweeperio/flay.git","clone_url":"https://github.com/sweeperio/flay.git","svn_url":"https://github.com/sweeperio/flay","homepage":null,"size":59,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sweeperio:master","ref":"master","sha":"f496556d8ddb9080e68a0484ce039110dc1cc3b1","user":{"login":"sweeperio","id":13475198,"avatar_url":"https://avatars.githubusercontent.com/u/13475198?v=3","gravatar_id":"","url":"https://api.github.com/users/sweeperio","html_url":"https://github.com/sweeperio","followers_url":"https://api.github.com/users/sweeperio/followers","following_url":"https://api.github.com/users/sweeperio/following{/other_user}","gists_url":"https://api.github.com/users/sweeperio/gists{/gist_id}","starred_url":"https://api.github.com/users/sweeperio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweeperio/subscriptions","organizations_url":"https://api.github.com/users/sweeperio/orgs","repos_url":"https://api.github.com/users/sweeperio/repos","events_url":"https://api.github.com/users/sweeperio/events{/privacy}","received_events_url":"https://api.github.com/users/sweeperio/received_events","type":"Organization","site_admin":false},"repo":{"id":48667143,"name":"flay","full_name":"sweeperio/flay","owner":{"login":"sweeperio","id":13475198,"avatar_url":"https://avatars.githubusercontent.com/u/13475198?v=3","gravatar_id":"","url":"https://api.github.com/users/sweeperio","html_url":"https://github.com/sweeperio","followers_url":"https://api.github.com/users/sweeperio/followers","following_url":"https://api.github.com/users/sweeperio/following{/other_user}","gists_url":"https://api.github.com/users/sweeperio/gists{/gist_id}","starred_url":"https://api.github.com/users/sweeperio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweeperio/subscriptions","organizations_url":"https://api.github.com/users/sweeperio/orgs","repos_url":"https://api.github.com/users/sweeperio/repos","events_url":"https://api.github.com/users/sweeperio/events{/privacy}","received_events_url":"https://api.github.com/users/sweeperio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sweeperio/flay","description":"A Chef cookbook generator using [chef-gen-flavors](https://rubygems.org/gems/chef-gen-flavors)","fork":false,"url":"https://api.github.com/repos/sweeperio/flay","forks_url":"https://api.github.com/repos/sweeperio/flay/forks","keys_url":"https://api.github.com/repos/sweeperio/flay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sweeperio/flay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sweeperio/flay/teams","hooks_url":"https://api.github.com/repos/sweeperio/flay/hooks","issue_events_url":"https://api.github.com/repos/sweeperio/flay/issues/events{/number}","events_url":"https://api.github.com/repos/sweeperio/flay/events","assignees_url":"https://api.github.com/repos/sweeperio/flay/assignees{/user}","branches_url":"https://api.github.com/repos/sweeperio/flay/branches{/branch}","tags_url":"https://api.github.com/repos/sweeperio/flay/tags","blobs_url":"https://api.github.com/repos/sweeperio/flay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sweeperio/flay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sweeperio/flay/git/refs{/sha}","trees_url":"https://api.github.com/repos/sweeperio/flay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sweeperio/flay/statuses/{sha}","languages_url":"https://api.github.com/repos/sweeperio/flay/languages","stargazers_url":"https://api.github.com/repos/sweeperio/flay/stargazers","contributors_url":"https://api.github.com/repos/sweeperio/flay/contributors","subscribers_url":"https://api.github.com/repos/sweeperio/flay/subscribers","subscription_url":"https://api.github.com/repos/sweeperio/flay/subscription","commits_url":"https://api.github.com/repos/sweeperio/flay/commits{/sha}","git_commits_url":"https://api.github.com/repos/sweeperio/flay/git/commits{/sha}","comments_url":"https://api.github.com/repos/sweeperio/flay/comments{/number}","issue_comment_url":"https://api.github.com/repos/sweeperio/flay/issues/comments{/number}","contents_url":"https://api.github.com/repos/sweeperio/flay/contents/{+path}","compare_url":"https://api.github.com/repos/sweeperio/flay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sweeperio/flay/merges","archive_url":"https://api.github.com/repos/sweeperio/flay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sweeperio/flay/downloads","issues_url":"https://api.github.com/repos/sweeperio/flay/issues{/number}","pulls_url":"https://api.github.com/repos/sweeperio/flay/pulls{/number}","milestones_url":"https://api.github.com/repos/sweeperio/flay/milestones{/number}","notifications_url":"https://api.github.com/repos/sweeperio/flay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sweeperio/flay/labels{/name}","releases_url":"https://api.github.com/repos/sweeperio/flay/releases{/id}","created_at":"2015-12-28T01:15:09Z","updated_at":"2015-12-28T01:15:57Z","pushed_at":"2015-12-30T18:56:30Z","git_url":"git://github.com/sweeperio/flay.git","ssh_url":"git@github.com:sweeperio/flay.git","clone_url":"https://github.com/sweeperio/flay.git","svn_url":"https://github.com/sweeperio/flay","homepage":null,"size":59,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sweeperio/flay/pulls/2"},"html":{"href":"https://github.com/sweeperio/flay/pull/2"},"issue":{"href":"https://api.github.com/repos/sweeperio/flay/issues/2"},"comments":{"href":"https://api.github.com/repos/sweeperio/flay/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/sweeperio/flay/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/sweeperio/flay/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sweeperio/flay/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/sweeperio/flay/statuses/f96a876f60418121e58a1f5d41a31c7358c0668d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":242,"deletions":7,"changed_files":9}}