{"action":"created","comment":{"url":"https://api.github.com/repos/gnustavo/Git-Hooks/pulls/comments/69300449","id":69300449,"diff_hunk":"@@ -1339,33 +1356,73 @@ These three options are required if you enable Gerrit hooks. They are\n used to construct the C<Gerrit::REST> object that is used to interact\n with Gerrit.\n \n+=head2 githooks.gerrit.labels-pass VOTES\n+\n+This option defines which votes should be cast in which\n+L<labels|https://gerrit-review.googlesource.com/Documentation/config-labels.html>\n+to B<approve> a review in the Gerrit change when all verification hooks\n+pass.\n+\n+VOTES is a comma-separated list of LABEL and VOTE mappings, such as:\n+\n+  Code-Review+2,Verification+1\n+\n+Which means that the C<Code-Review> label should receive a +2 and the label\n+C<Verification> should receive a +1.\n+\n+If not specified, the default VOTES is:\n+\n+  Code-Review+1\n+\n+=head2 githooks.gerrit.labels-fail VOTES\n+\n+This option defines which votes should be cast in which\n+L<labels|https://gerrit-review.googlesource.com/Documentation/config-labels.html>\n+to B<reject> a review in the Gerrit change when some verification hooks\n+fail.\n+\n+VOTES has the same syntax as above.\n+\n+If not specified, the default VOTES is:\n+\n+  Code-Review-1\n+\n+=head2 githooks.gerrit.comment-ok COMMENT","path":"lib/Git/Hooks.pm","position":101,"original_position":94,"commit_id":"620d34f713150b58c1e9918ea1b53774883791a2","original_commit_id":"257781fbfac7a6c7607a64285058a63ed8c0afa5","user":{"login":"marceloavilaoliveira","id":20242819,"avatar_url":"https://avatars.githubusercontent.com/u/20242819?v=3","gravatar_id":"","url":"https://api.github.com/users/marceloavilaoliveira","html_url":"https://github.com/marceloavilaoliveira","followers_url":"https://api.github.com/users/marceloavilaoliveira/followers","following_url":"https://api.github.com/users/marceloavilaoliveira/following{/other_user}","gists_url":"https://api.github.com/users/marceloavilaoliveira/gists{/gist_id}","starred_url":"https://api.github.com/users/marceloavilaoliveira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marceloavilaoliveira/subscriptions","organizations_url":"https://api.github.com/users/marceloavilaoliveira/orgs","repos_url":"https://api.github.com/users/marceloavilaoliveira/repos","events_url":"https://api.github.com/users/marceloavilaoliveira/events{/privacy}","received_events_url":"https://api.github.com/users/marceloavilaoliveira/received_events","type":"User","site_admin":false},"body":"Não existe a opção \"comment-fail\"?","created_at":"2016-07-01T13:38:58Z","updated_at":"2016-07-01T13:38:58Z","html_url":"https://github.com/gnustavo/Git-Hooks/pull/28#discussion_r69300449","pull_request_url":"https://api.github.com/repos/gnustavo/Git-Hooks/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/gnustavo/Git-Hooks/pulls/comments/69300449"},"html":{"href":"https://github.com/gnustavo/Git-Hooks/pull/28#discussion_r69300449"},"pull_request":{"href":"https://api.github.com/repos/gnustavo/Git-Hooks/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/gnustavo/Git-Hooks/pulls/28","id":75901054,"html_url":"https://github.com/gnustavo/Git-Hooks/pull/28","diff_url":"https://github.com/gnustavo/Git-Hooks/pull/28.diff","patch_url":"https://github.com/gnustavo/Git-Hooks/pull/28.patch","issue_url":"https://api.github.com/repos/gnustavo/Git-Hooks/issues/28","number":28,"state":"open","locked":false,"title":"Gerrit submit","user":{"login":"gnustavo","id":113992,"avatar_url":"https://avatars.githubusercontent.com/u/113992?v=3","gravatar_id":"","url":"https://api.github.com/users/gnustavo","html_url":"https://github.com/gnustavo","followers_url":"https://api.github.com/users/gnustavo/followers","following_url":"https://api.github.com/users/gnustavo/following{/other_user}","gists_url":"https://api.github.com/users/gnustavo/gists{/gist_id}","starred_url":"https://api.github.com/users/gnustavo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnustavo/subscriptions","organizations_url":"https://api.github.com/users/gnustavo/orgs","repos_url":"https://api.github.com/users/gnustavo/repos","events_url":"https://api.github.com/users/gnustavo/events{/privacy}","received_events_url":"https://api.github.com/users/gnustavo/received_events","type":"User","site_admin":false},"body":"This pull request implements a new configuration option to make Git::Hooks try to automatically submit a Gerrit change if it's passed all hook checks.\r\n\r\nAlso, it implements new configuration options to specify Gerrit votes in multiple labels, deprecating the old ones.","created_at":"2016-06-30T22:28:35Z","updated_at":"2016-07-01T13:38:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4b7c3eee91709312c1d3e4c55832d8be0dc6040","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gnustavo/Git-Hooks/pulls/28/commits","review_comments_url":"https://api.github.com/repos/gnustavo/Git-Hooks/pulls/28/comments","review_comment_url":"https://api.github.com/repos/gnustavo/Git-Hooks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gnustavo/Git-Hooks/issues/28/comments","statuses_url":"https://api.github.com/repos/gnustavo/Git-Hooks/statuses/620d34f713150b58c1e9918ea1b53774883791a2","head":{"label":"gnustavo:gerrit-submit","ref":"gerrit-submit","sha":"620d34f713150b58c1e9918ea1b53774883791a2","user":{"login":"gnustavo","id":113992,"avatar_url":"https://avatars.githubusercontent.com/u/113992?v=3","gravatar_id":"","url":"https://api.github.com/users/gnustavo","html_url":"https://github.com/gnustavo","followers_url":"https://api.github.com/users/gnustavo/followers","following_url":"https://api.github.com/users/gnustavo/following{/other_user}","gists_url":"https://api.github.com/users/gnustavo/gists{/gist_id}","starred_url":"https://api.github.com/users/gnustavo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnustavo/subscriptions","organizations_url":"https://api.github.com/users/gnustavo/orgs","repos_url":"https://api.github.com/users/gnustavo/repos","events_url":"https://api.github.com/users/gnustavo/events{/privacy}","received_events_url":"https://api.github.com/users/gnustavo/received_events","type":"User","site_admin":false},"repo":{"id":4106322,"name":"Git-Hooks","full_name":"gnustavo/Git-Hooks","owner":{"login":"gnustavo","id":113992,"avatar_url":"https://avatars.githubusercontent.com/u/113992?v=3","gravatar_id":"","url":"https://api.github.com/users/gnustavo","html_url":"https://github.com/gnustavo","followers_url":"https://api.github.com/users/gnustavo/followers","following_url":"https://api.github.com/users/gnustavo/following{/other_user}","gists_url":"https://api.github.com/users/gnustavo/gists{/gist_id}","starred_url":"https://api.github.com/users/gnustavo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnustavo/subscriptions","organizations_url":"https://api.github.com/users/gnustavo/orgs","repos_url":"https://api.github.com/users/gnustavo/repos","events_url":"https://api.github.com/users/gnustavo/events{/privacy}","received_events_url":"https://api.github.com/users/gnustavo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gnustavo/Git-Hooks","description":"Framework for implementing Git (and Gerrit) hooks","fork":false,"url":"https://api.github.com/repos/gnustavo/Git-Hooks","forks_url":"https://api.github.com/repos/gnustavo/Git-Hooks/forks","keys_url":"https://api.github.com/repos/gnustavo/Git-Hooks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gnustavo/Git-Hooks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gnustavo/Git-Hooks/teams","hooks_url":"https://api.github.com/repos/gnustavo/Git-Hooks/hooks","issue_events_url":"https://api.github.com/repos/gnustavo/Git-Hooks/issues/events{/number}","events_url":"https://api.github.com/repos/gnustavo/Git-Hooks/events","assignees_url":"https://api.github.com/repos/gnustavo/Git-Hooks/assignees{/user}","branches_url":"https://api.github.com/repos/gnustavo/Git-Hooks/branches{/branch}","tags_url":"https://api.github.com/repos/gnustavo/Git-Hooks/tags","blobs_url":"https://api.github.com/repos/gnustavo/Git-Hooks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gnustavo/Git-Hooks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gnustavo/Git-Hooks/git/refs{/sha}","trees_url":"https://api.github.com/repos/gnustavo/Git-Hooks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gnustavo/Git-Hooks/statuses/{sha}","languages_url":"https://api.github.com/repos/gnustavo/Git-Hooks/languages","stargazers_url":"https://api.github.com/repos/gnustavo/Git-Hooks/stargazers","contributors_url":"https://api.github.com/repos/gnustavo/Git-Hooks/contributors","subscribers_url":"https://api.github.com/repos/gnustavo/Git-Hooks/subscribers","subscription_url":"https://api.github.com/repos/gnustavo/Git-Hooks/subscription","commits_url":"https://api.github.com/repos/gnustavo/Git-Hooks/commits{/sha}","git_commits_url":"https://api.github.com/repos/gnustavo/Git-Hooks/git/commits{/sha}","comments_url":"https://api.github.com/repos/gnustavo/Git-Hooks/comments{/number}","issue_comment_url":"https://api.github.com/repos/gnustavo/Git-Hooks/issues/comments{/number}","contents_url":"https://api.github.com/repos/gnustavo/Git-Hooks/contents/{+path}","compare_url":"https://api.github.com/repos/gnustavo/Git-Hooks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gnustavo/Git-Hooks/merges","archive_url":"https://api.github.com/repos/gnustavo/Git-Hooks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gnustavo/Git-Hooks/downloads","issues_url":"https://api.github.com/repos/gnustavo/Git-Hooks/issues{/number}","pulls_url":"https://api.github.com/repos/gnustavo/Git-Hooks/pulls{/number}","milestones_url":"https://api.github.com/repos/gnustavo/Git-Hooks/milestones{/number}","notifications_url":"https://api.github.com/repos/gnustavo/Git-Hooks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gnustavo/Git-Hooks/labels{/name}","releases_url":"https://api.github.com/repos/gnustavo/Git-Hooks/releases{/id}","deployments_url":"https://api.github.com/repos/gnustavo/Git-Hooks/deployments","created_at":"2012-04-22T19:08:05Z","updated_at":"2016-06-15T13:43:50Z","pushed_at":"2016-06-30T22:28:35Z","git_url":"git://github.com/gnustavo/Git-Hooks.git","ssh_url":"git@github.com:gnustavo/Git-Hooks.git","clone_url":"https://github.com/gnustavo/Git-Hooks.git","svn_url":"https://github.com/gnustavo/Git-Hooks","homepage":"http://search.cpan.org/dist/Git-Hooks/","size":1181,"stargazers_count":18,"watchers_count":18,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":6,"forks":11,"open_issues":6,"watchers":18,"default_branch":"next"}},"base":{"label":"gnustavo:next","ref":"next","sha":"2e6415caba4bec067ad4e982df427383d6dc17c7","user":{"login":"gnustavo","id":113992,"avatar_url":"https://avatars.githubusercontent.com/u/113992?v=3","gravatar_id":"","url":"https://api.github.com/users/gnustavo","html_url":"https://github.com/gnustavo","followers_url":"https://api.github.com/users/gnustavo/followers","following_url":"https://api.github.com/users/gnustavo/following{/other_user}","gists_url":"https://api.github.com/users/gnustavo/gists{/gist_id}","starred_url":"https://api.github.com/users/gnustavo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnustavo/subscriptions","organizations_url":"https://api.github.com/users/gnustavo/orgs","repos_url":"https://api.github.com/users/gnustavo/repos","events_url":"https://api.github.com/users/gnustavo/events{/privacy}","received_events_url":"https://api.github.com/users/gnustavo/received_events","type":"User","site_admin":false},"repo":{"id":4106322,"name":"Git-Hooks","full_name":"gnustavo/Git-Hooks","owner":{"login":"gnustavo","id":113992,"avatar_url":"https://avatars.githubusercontent.com/u/113992?v=3","gravatar_id":"","url":"https://api.github.com/users/gnustavo","html_url":"https://github.com/gnustavo","followers_url":"https://api.github.com/users/gnustavo/followers","following_url":"https://api.github.com/users/gnustavo/following{/other_user}","gists_url":"https://api.github.com/users/gnustavo/gists{/gist_id}","starred_url":"https://api.github.com/users/gnustavo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnustavo/subscriptions","organizations_url":"https://api.github.com/users/gnustavo/orgs","repos_url":"https://api.github.com/users/gnustavo/repos","events_url":"https://api.github.com/users/gnustavo/events{/privacy}","received_events_url":"https://api.github.com/users/gnustavo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gnustavo/Git-Hooks","description":"Framework for implementing Git (and Gerrit) hooks","fork":false,"url":"https://api.github.com/repos/gnustavo/Git-Hooks","forks_url":"https://api.github.com/repos/gnustavo/Git-Hooks/forks","keys_url":"https://api.github.com/repos/gnustavo/Git-Hooks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gnustavo/Git-Hooks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gnustavo/Git-Hooks/teams","hooks_url":"https://api.github.com/repos/gnustavo/Git-Hooks/hooks","issue_events_url":"https://api.github.com/repos/gnustavo/Git-Hooks/issues/events{/number}","events_url":"https://api.github.com/repos/gnustavo/Git-Hooks/events","assignees_url":"https://api.github.com/repos/gnustavo/Git-Hooks/assignees{/user}","branches_url":"https://api.github.com/repos/gnustavo/Git-Hooks/branches{/branch}","tags_url":"https://api.github.com/repos/gnustavo/Git-Hooks/tags","blobs_url":"https://api.github.com/repos/gnustavo/Git-Hooks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gnustavo/Git-Hooks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gnustavo/Git-Hooks/git/refs{/sha}","trees_url":"https://api.github.com/repos/gnustavo/Git-Hooks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gnustavo/Git-Hooks/statuses/{sha}","languages_url":"https://api.github.com/repos/gnustavo/Git-Hooks/languages","stargazers_url":"https://api.github.com/repos/gnustavo/Git-Hooks/stargazers","contributors_url":"https://api.github.com/repos/gnustavo/Git-Hooks/contributors","subscribers_url":"https://api.github.com/repos/gnustavo/Git-Hooks/subscribers","subscription_url":"https://api.github.com/repos/gnustavo/Git-Hooks/subscription","commits_url":"https://api.github.com/repos/gnustavo/Git-Hooks/commits{/sha}","git_commits_url":"https://api.github.com/repos/gnustavo/Git-Hooks/git/commits{/sha}","comments_url":"https://api.github.com/repos/gnustavo/Git-Hooks/comments{/number}","issue_comment_url":"https://api.github.com/repos/gnustavo/Git-Hooks/issues/comments{/number}","contents_url":"https://api.github.com/repos/gnustavo/Git-Hooks/contents/{+path}","compare_url":"https://api.github.com/repos/gnustavo/Git-Hooks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gnustavo/Git-Hooks/merges","archive_url":"https://api.github.com/repos/gnustavo/Git-Hooks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gnustavo/Git-Hooks/downloads","issues_url":"https://api.github.com/repos/gnustavo/Git-Hooks/issues{/number}","pulls_url":"https://api.github.com/repos/gnustavo/Git-Hooks/pulls{/number}","milestones_url":"https://api.github.com/repos/gnustavo/Git-Hooks/milestones{/number}","notifications_url":"https://api.github.com/repos/gnustavo/Git-Hooks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gnustavo/Git-Hooks/labels{/name}","releases_url":"https://api.github.com/repos/gnustavo/Git-Hooks/releases{/id}","deployments_url":"https://api.github.com/repos/gnustavo/Git-Hooks/deployments","created_at":"2012-04-22T19:08:05Z","updated_at":"2016-06-15T13:43:50Z","pushed_at":"2016-06-30T22:28:35Z","git_url":"git://github.com/gnustavo/Git-Hooks.git","ssh_url":"git@github.com:gnustavo/Git-Hooks.git","clone_url":"https://github.com/gnustavo/Git-Hooks.git","svn_url":"https://github.com/gnustavo/Git-Hooks","homepage":"http://search.cpan.org/dist/Git-Hooks/","size":1181,"stargazers_count":18,"watchers_count":18,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":6,"forks":11,"open_issues":6,"watchers":18,"default_branch":"next"}},"_links":{"self":{"href":"https://api.github.com/repos/gnustavo/Git-Hooks/pulls/28"},"html":{"href":"https://github.com/gnustavo/Git-Hooks/pull/28"},"issue":{"href":"https://api.github.com/repos/gnustavo/Git-Hooks/issues/28"},"comments":{"href":"https://api.github.com/repos/gnustavo/Git-Hooks/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/gnustavo/Git-Hooks/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/gnustavo/Git-Hooks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gnustavo/Git-Hooks/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/gnustavo/Git-Hooks/statuses/620d34f713150b58c1e9918ea1b53774883791a2"}}}}
{"actor":{"display_login":"marceloavilaoliveira"}}