{"action":"created","issue":{"url":"https://api.github.com/repos/sford/yet-another-commit-checker/issues/168","repository_url":"https://api.github.com/repos/sford/yet-another-commit-checker","labels_url":"https://api.github.com/repos/sford/yet-another-commit-checker/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/sford/yet-another-commit-checker/issues/168/comments","events_url":"https://api.github.com/repos/sford/yet-another-commit-checker/issues/168/events","html_url":"https://github.com/sford/yet-another-commit-checker/issues/168","id":264171613,"node_id":"MDU6SXNzdWUyNjQxNzE2MTM=","number":168,"title":"YACC rejecting annotated tags","user":{"login":"hvanleemputten","id":12497275,"node_id":"MDQ6VXNlcjEyNDk3Mjc1","avatar_url":"https://avatars3.githubusercontent.com/u/12497275?v=4","gravatar_id":"","url":"https://api.github.com/users/hvanleemputten","html_url":"https://github.com/hvanleemputten","followers_url":"https://api.github.com/users/hvanleemputten/followers","following_url":"https://api.github.com/users/hvanleemputten/following{/other_user}","gists_url":"https://api.github.com/users/hvanleemputten/gists{/gist_id}","starred_url":"https://api.github.com/users/hvanleemputten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvanleemputten/subscriptions","organizations_url":"https://api.github.com/users/hvanleemputten/orgs","repos_url":"https://api.github.com/users/hvanleemputten/repos","events_url":"https://api.github.com/users/hvanleemputten/events{/privacy}","received_events_url":"https://api.github.com/users/hvanleemputten/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-10T10:11:44Z","updated_at":"2018-06-26T09:11:24Z","closed_at":"2018-06-26T09:11:24Z","author_association":"NONE","body":"After upgrading our Bitbucket server to use the latest released version of YACC, our TeamCity failed to tag successful builds. The hook is configured to check \"Require Matching Committer Email\", \"Require Matching Committer Name\" and \"Commit Message Regex\". The TeamCity server uses a SSH key to perform the tagging. \r\n\r\nThe only way I found the tagging to work was to disable the \"Require Matching Committer Email\" and \"Require Matching Committer Name\" check.\r\n\r\nTC error doesn't say much, it only says the following:\r\n> [2017-10-10 11:20:19,341]   INFO [al executor 781] - ers.vcs.git.GitLabelingSupport - Tag  TeamCity-Windows-build-0.0.99.4392(3531)=5fb3a5ed01100c6069c306436f05c2006068ba3b was pushed with status REJECTED_OTHER_REASON for  (D:\\Teamcity_config\\system\\caches\\git\\git-29EAEA98.git, ssh://git@our-server.com:7999/project/repo.git#master) in 26625ms (prepare pack 110ms) \r\n[2017-10-10 11:20:19,419]   WARN [al executor 781] -      jetbrains.buildServer.VCS - Failed to set label 'TeamCity-Windows-build-0.0.99.4392(3531)' \r\njetbrains.buildServer.vcs.VcsException: The remote 'TeamCity-Windows-build-0.0.99.4392(3531)' tag was not created, status: REJECTED_OTHER_REASON, message: pre-receive hook declined\r\n\tat jetbrains.buildServer.buildTriggers.vcs.git.GitLabelingSupport.push(GitLabelingSupport.java:144)\r\n\tat jetbrains.buildServer.buildTriggers.vcs.git.GitLabelingSupport.label(GitLabelingSupport.java:102)\r\n\tat jetbrains.vcs.api.services.impl.LabelingServiceProvider$1.label(LabelingServiceProvider.java:1)\r\n\tat jetbrains.buildServer.vcs.impl.VcsLabeler.doSetLabel(VcsLabeler.java:101)\r\n\tat jetbrains.buildServer.vcs.impl.VcsLabeler.access$400(VcsLabeler.java:18)\r\n\tat jetbrains.buildServer.vcs.impl.VcsLabeler$2$1.run(VcsLabeler.java:4)\r\n\tat jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:41)\r\n\tat jetbrains.buildServer.vcs.impl.VcsLabeler$2$2.run(VcsLabeler.java:3)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)\r\n\tat java.util.concurrent.FutureTask.run(Unknown Source)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\r\n\tat java.lang.Thread.run(Unknown Source)\r\n\r\nIn the end I was able to reproduce this without TC, using a ssh key\r\n> git tag -a tag_test -m \"test\"\r\n\r\n> git push origin tag_test\r\nCounting objects: 1, done.\r\nWriting objects: 100% (1/1), 172 bytes | 0 bytes/s, done.\r\nTotal 1 (delta 0), reused 0 (delta 0)\r\nremote: Push rejected by YACC\r\nremote:\r\nremote:   (c).-.(c)    (c).-.(c)    (c).-.(c)    (c).-.(c)    (c).-.(c)\r\nremote:    / ._. \\      / ._. \\      / ._. \\      / ._. \\      / ._. \\\r\nremote:  __\\( Y )/__  __\\( Y )/__  __\\( Y )/__  __\\( Y )/__  __\\( Y )/__\r\nremote: (_.-/'-'\\-._)(_.-/'-'\\-._)(_.-/'-'\\-._)(_.-/'-'\\-._)(_.-/'-'\\-._)\r\nremote:    || E ||      || R ||      || R ||      || O ||      || R ||\r\nremote:  _.' `-' '._  _.' `-' '._  _.' `-' '._  _.' `-' '._  _.' `-' '.\r\nremote: (.-./`-'\\.-.)(.-./`-`\\.-.)(.-./`-`\\.-.)(.-./`-'\\.-.)(.-./`-`\\.-.)\r\nremote:  `-'     `-'  `-'     `-'  `-'     `-'  `-'     `-'  `-'     `-'\r\nremote:\r\nremote:\r\nremote: Push rejected.\r\nremote:\r\nremote: refs/tags/tag_test: expected committer name 'Access Key User - ---- END SSH2 PUBLIC KEY ----' but found 'unknown'\r\nremote:\r\nremote:\r\nTo ssh://git@our-server.com:7999/project/repo.git\r\n ! [remote rejected] tag_test -> tag_test (pre-receive hook declined)\r\nerror: failed to push some refs to 'ssh://git@our-server.com:7999/project/repo.git'\r\n\r\n> git show tag_test\r\ntag tag_test\r\nTagger: unknown <User@xxxxxx.com>\r\nDate:   Tue Oct 10 12:02:42 2017 +0200\r\n...\r\n\r\nIs there any way to exclude the user? it seems that specifying a username to exclude does not work in this use case."},"comment":{"url":"https://api.github.com/repos/sford/yet-another-commit-checker/issues/comments/400238235","html_url":"https://github.com/sford/yet-another-commit-checker/issues/168#issuecomment-400238235","issue_url":"https://api.github.com/repos/sford/yet-another-commit-checker/issues/168","id":400238235,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDIzODIzNQ==","user":{"login":"hvanleemputten","id":12497275,"node_id":"MDQ6VXNlcjEyNDk3Mjc1","avatar_url":"https://avatars3.githubusercontent.com/u/12497275?v=4","gravatar_id":"","url":"https://api.github.com/users/hvanleemputten","html_url":"https://github.com/hvanleemputten","followers_url":"https://api.github.com/users/hvanleemputten/followers","following_url":"https://api.github.com/users/hvanleemputten/following{/other_user}","gists_url":"https://api.github.com/users/hvanleemputten/gists{/gist_id}","starred_url":"https://api.github.com/users/hvanleemputten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hvanleemputten/subscriptions","organizations_url":"https://api.github.com/users/hvanleemputten/orgs","repos_url":"https://api.github.com/users/hvanleemputten/repos","events_url":"https://api.github.com/users/hvanleemputten/events{/privacy}","received_events_url":"https://api.github.com/users/hvanleemputten/received_events","type":"User","site_admin":false},"created_at":"2018-06-26T09:11:24Z","updated_at":"2018-06-26T09:11:24Z","author_association":"NONE","body":"I didn't realize this was fixed and released, so yes it can be closed"}}
{"actor":{"display_login":"hvanleemputten"}}