{"action":"created","comment":{"url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/pulls/comments/23097614","id":23097614,"diff_hunk":"@@ -108,6 +89,19 @@ def remote_tag(tag)\n     end\n   end\n \n+  def git_cut_tag\n+    repo = Grit::Repo.new('.')\n+    raise 'You are currently in a detached head state. Cannot cut tag.' unless repo.head\n+\n+    new_tag = \"#{repo.head.name}-#{Time.now.utc.to_i}\"\n+\n+    git = GitRepo.new","path":"lib/pd-cap-recipes/tasks/git.rb","position":92,"original_position":92,"commit_id":"9acf65d83ac234ca3ab17efdc3c53b0f6a0a1985","original_commit_id":"9acf65d83ac234ca3ab17efdc3c53b0f6a0a1985","user":{"login":"alperkokmen","id":1657578,"avatar_url":"https://avatars.githubusercontent.com/u/1657578?v=3","gravatar_id":"","url":"https://api.github.com/users/alperkokmen","html_url":"https://github.com/alperkokmen","followers_url":"https://api.github.com/users/alperkokmen/followers","following_url":"https://api.github.com/users/alperkokmen/following{/other_user}","gists_url":"https://api.github.com/users/alperkokmen/gists{/gist_id}","starred_url":"https://api.github.com/users/alperkokmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alperkokmen/subscriptions","organizations_url":"https://api.github.com/users/alperkokmen/orgs","repos_url":"https://api.github.com/users/alperkokmen/repos","events_url":"https://api.github.com/users/alperkokmen/events{/privacy}","received_events_url":"https://api.github.com/users/alperkokmen/received_events","type":"User","site_admin":false},"body":"`GitRepo` instance will forward everything to `Grit::Git` whereas `git` is an instance of `Grit::Repo.new('.')`.","created_at":"2015-01-16T18:09:13Z","updated_at":"2015-01-16T18:09:13Z","html_url":"https://github.com/PagerDuty/pd-cap-recipes/pull/30#discussion_r23097614","pull_request_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/pulls/comments/23097614"},"html":{"href":"https://github.com/PagerDuty/pd-cap-recipes/pull/30#discussion_r23097614"},"pull_request":{"href":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/pulls/30","id":27479684,"html_url":"https://github.com/PagerDuty/pd-cap-recipes/pull/30","diff_url":"https://github.com/PagerDuty/pd-cap-recipes/pull/30.diff","patch_url":"https://github.com/PagerDuty/pd-cap-recipes/pull/30.patch","issue_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/issues/30","number":30,"state":"open","locked":false,"title":"a lighter version of pd-cap-recipes","user":{"login":"alperkokmen","id":1657578,"avatar_url":"https://avatars.githubusercontent.com/u/1657578?v=3","gravatar_id":"","url":"https://api.github.com/users/alperkokmen","html_url":"https://github.com/alperkokmen","followers_url":"https://api.github.com/users/alperkokmen/followers","following_url":"https://api.github.com/users/alperkokmen/following{/other_user}","gists_url":"https://api.github.com/users/alperkokmen/gists{/gist_id}","starred_url":"https://api.github.com/users/alperkokmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alperkokmen/subscriptions","organizations_url":"https://api.github.com/users/alperkokmen/orgs","repos_url":"https://api.github.com/users/alperkokmen/repos","events_url":"https://api.github.com/users/alperkokmen/events{/privacy}","received_events_url":"https://api.github.com/users/alperkokmen/received_events","type":"User","site_admin":false},"body":"- get rid of `Gemfile.lock` and use `gemspec` properly to manage gem dependencies.\r\n- remove `hipchat` recipe. newest version of the gem (`1.4.0` at the time of writing this) offers the same features and more.\r\n- remove `cap_gun` recipe.\r\n- remove `comments` recipe.\r\n- update `README` for the changes in this PR.\r\n- refactor `git.cut_tag` into a method so we can call it from any task we like.\r\n- bump version to `0.2.0` as there are many breaking changes.","created_at":"2015-01-16T02:11:55Z","updated_at":"2015-01-16T18:09:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b41b4170925bd7c00505216c2d8930eab6471610","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/pulls/30/commits","review_comments_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/pulls/30/comments","review_comment_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/pulls/comments/{number}","comments_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/issues/30/comments","statuses_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/statuses/9acf65d83ac234ca3ab17efdc3c53b0f6a0a1985","head":{"label":"PagerDuty:pd-cap-recipes-light","ref":"pd-cap-recipes-light","sha":"9acf65d83ac234ca3ab17efdc3c53b0f6a0a1985","user":{"login":"PagerDuty","id":766800,"avatar_url":"https://avatars.githubusercontent.com/u/766800?v=3","gravatar_id":"","url":"https://api.github.com/users/PagerDuty","html_url":"https://github.com/PagerDuty","followers_url":"https://api.github.com/users/PagerDuty/followers","following_url":"https://api.github.com/users/PagerDuty/following{/other_user}","gists_url":"https://api.github.com/users/PagerDuty/gists{/gist_id}","starred_url":"https://api.github.com/users/PagerDuty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PagerDuty/subscriptions","organizations_url":"https://api.github.com/users/PagerDuty/orgs","repos_url":"https://api.github.com/users/PagerDuty/repos","events_url":"https://api.github.com/users/PagerDuty/events{/privacy}","received_events_url":"https://api.github.com/users/PagerDuty/received_events","type":"Organization","site_admin":false},"repo":{"id":3371681,"name":"pd-cap-recipes","full_name":"PagerDuty/pd-cap-recipes","owner":{"login":"PagerDuty","id":766800,"avatar_url":"https://avatars.githubusercontent.com/u/766800?v=3","gravatar_id":"","url":"https://api.github.com/users/PagerDuty","html_url":"https://github.com/PagerDuty","followers_url":"https://api.github.com/users/PagerDuty/followers","following_url":"https://api.github.com/users/PagerDuty/following{/other_user}","gists_url":"https://api.github.com/users/PagerDuty/gists{/gist_id}","starred_url":"https://api.github.com/users/PagerDuty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PagerDuty/subscriptions","organizations_url":"https://api.github.com/users/PagerDuty/orgs","repos_url":"https://api.github.com/users/PagerDuty/repos","events_url":"https://api.github.com/users/PagerDuty/events{/privacy}","received_events_url":"https://api.github.com/users/PagerDuty/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PagerDuty/pd-cap-recipes","description":"A collection of Capistrano recipes used by PagerDuty to deploy rails projects.","fork":false,"url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes","forks_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/forks","keys_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/teams","hooks_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/hooks","issue_events_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/issues/events{/number}","events_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/events","assignees_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/assignees{/user}","branches_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/branches{/branch}","tags_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/tags","blobs_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/languages","stargazers_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/stargazers","contributors_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/contributors","subscribers_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/subscribers","subscription_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/subscription","commits_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/issues/comments/{number}","contents_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/contents/{+path}","compare_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/merges","archive_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/downloads","issues_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/issues{/number}","pulls_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/labels{/name}","releases_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/releases{/id}","created_at":"2012-02-06T22:17:50Z","updated_at":"2014-12-30T00:21:51Z","pushed_at":"2015-01-16T06:38:17Z","git_url":"git://github.com/PagerDuty/pd-cap-recipes.git","ssh_url":"git@github.com:PagerDuty/pd-cap-recipes.git","clone_url":"https://github.com/PagerDuty/pd-cap-recipes.git","svn_url":"https://github.com/PagerDuty/pd-cap-recipes","homepage":"","size":477,"stargazers_count":103,"watchers_count":103,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":5,"forks":12,"open_issues":5,"watchers":103,"default_branch":"master"}},"base":{"label":"PagerDuty:master","ref":"master","sha":"95d71b1e79877242d036d23df2d96091f653114c","user":{"login":"PagerDuty","id":766800,"avatar_url":"https://avatars.githubusercontent.com/u/766800?v=3","gravatar_id":"","url":"https://api.github.com/users/PagerDuty","html_url":"https://github.com/PagerDuty","followers_url":"https://api.github.com/users/PagerDuty/followers","following_url":"https://api.github.com/users/PagerDuty/following{/other_user}","gists_url":"https://api.github.com/users/PagerDuty/gists{/gist_id}","starred_url":"https://api.github.com/users/PagerDuty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PagerDuty/subscriptions","organizations_url":"https://api.github.com/users/PagerDuty/orgs","repos_url":"https://api.github.com/users/PagerDuty/repos","events_url":"https://api.github.com/users/PagerDuty/events{/privacy}","received_events_url":"https://api.github.com/users/PagerDuty/received_events","type":"Organization","site_admin":false},"repo":{"id":3371681,"name":"pd-cap-recipes","full_name":"PagerDuty/pd-cap-recipes","owner":{"login":"PagerDuty","id":766800,"avatar_url":"https://avatars.githubusercontent.com/u/766800?v=3","gravatar_id":"","url":"https://api.github.com/users/PagerDuty","html_url":"https://github.com/PagerDuty","followers_url":"https://api.github.com/users/PagerDuty/followers","following_url":"https://api.github.com/users/PagerDuty/following{/other_user}","gists_url":"https://api.github.com/users/PagerDuty/gists{/gist_id}","starred_url":"https://api.github.com/users/PagerDuty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PagerDuty/subscriptions","organizations_url":"https://api.github.com/users/PagerDuty/orgs","repos_url":"https://api.github.com/users/PagerDuty/repos","events_url":"https://api.github.com/users/PagerDuty/events{/privacy}","received_events_url":"https://api.github.com/users/PagerDuty/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PagerDuty/pd-cap-recipes","description":"A collection of Capistrano recipes used by PagerDuty to deploy rails projects.","fork":false,"url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes","forks_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/forks","keys_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/teams","hooks_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/hooks","issue_events_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/issues/events{/number}","events_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/events","assignees_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/assignees{/user}","branches_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/branches{/branch}","tags_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/tags","blobs_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/languages","stargazers_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/stargazers","contributors_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/contributors","subscribers_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/subscribers","subscription_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/subscription","commits_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/issues/comments/{number}","contents_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/contents/{+path}","compare_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/merges","archive_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/downloads","issues_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/issues{/number}","pulls_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/labels{/name}","releases_url":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/releases{/id}","created_at":"2012-02-06T22:17:50Z","updated_at":"2014-12-30T00:21:51Z","pushed_at":"2015-01-16T06:38:17Z","git_url":"git://github.com/PagerDuty/pd-cap-recipes.git","ssh_url":"git@github.com:PagerDuty/pd-cap-recipes.git","clone_url":"https://github.com/PagerDuty/pd-cap-recipes.git","svn_url":"https://github.com/PagerDuty/pd-cap-recipes","homepage":"","size":477,"stargazers_count":103,"watchers_count":103,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":5,"forks":12,"open_issues":5,"watchers":103,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/pulls/30"},"html":{"href":"https://github.com/PagerDuty/pd-cap-recipes/pull/30"},"issue":{"href":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/issues/30"},"comments":{"href":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/PagerDuty/pd-cap-recipes/statuses/9acf65d83ac234ca3ab17efdc3c53b0f6a0a1985"}}}}