{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/5703","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/5703/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/5703/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/5703/events","html_url":"https://github.com/fastlane/fastlane/issues/5703","id":170606736,"number":5703,"title":"'add_git_tag' fails if you reset the build number to 1 with version changes","user":{"login":"sareninden","id":1567222,"avatar_url":"https://avatars.githubusercontent.com/u/1567222?v=3","gravatar_id":"","url":"https://api.github.com/users/sareninden","html_url":"https://github.com/sareninden","followers_url":"https://api.github.com/users/sareninden/followers","following_url":"https://api.github.com/users/sareninden/following{/other_user}","gists_url":"https://api.github.com/users/sareninden/gists{/gist_id}","starred_url":"https://api.github.com/users/sareninden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sareninden/subscriptions","organizations_url":"https://api.github.com/users/sareninden/orgs","repos_url":"https://api.github.com/users/sareninden/repos","events_url":"https://api.github.com/users/sareninden/events{/privacy}","received_events_url":"https://api.github.com/users/sareninden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-11T09:42:55Z","updated_at":"2016-08-11T10:04:27Z","closed_at":null,"body":"### New Issue Checklist\r\n\r\n- [ Check ] Updated fastlane to the latest version\r\n- [ Check ] I have read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\r\n\r\n### Issue Description\r\n\r\nApple allows you to set the build number to 0 (or any other value) after increasing the version number.\r\n\r\nSo you have version 1.3.1, build 8 uploaded.\r\nYou increase the version to 1.3.2 and set the build back to 1.\r\n\r\nThis is a valid condition for iTunes connect. Only if you than add a git tag with the command 'add_git_tag' it will fail if in example a git tag already exists for 'build 1'.\r\n\r\nThis can be solved by adding the version number also to the git tag by default.\r\n\r\nTag will than be something like 'builds/iosbeta/1.3.2/3' instead of 'builds/iosbeta/3'\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n\r\n[11:20:12]: Exit status of command 'git tag -am builds/iosbeta/3\\ \\(fastlane\\) 'builds/iosbeta/3'' was 128 instead of 0.\r\nfatal: tag 'builds/iosbeta/3' already exists\r\n\r\n### Configuration Files\r\n\r\nPlease copy the complete content of your `Fastfile` and any other configuration files you use below:\r\n\r\nFastfile:\r\n```ruby\r\n# INSERT CONTENT HERE\r\n```\r\n\r\n### Environment\r\n\r\nfastlane version (run `fastlane -v`):\r\n\r\nDo you use bundler to execute fastlane (i.e. `bundle exec fastlane`)?\r\n\r\nDo you use a Ruby environment manager (e.g. `chruby`, `rbenv`, `rvm`)?\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/239120479","html_url":"https://github.com/fastlane/fastlane/issues/5703#issuecomment-239120479","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/5703","id":239120479,"user":{"login":"sareninden","id":1567222,"avatar_url":"https://avatars.githubusercontent.com/u/1567222?v=3","gravatar_id":"","url":"https://api.github.com/users/sareninden","html_url":"https://github.com/sareninden","followers_url":"https://api.github.com/users/sareninden/followers","following_url":"https://api.github.com/users/sareninden/following{/other_user}","gists_url":"https://api.github.com/users/sareninden/gists{/gist_id}","starred_url":"https://api.github.com/users/sareninden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sareninden/subscriptions","organizations_url":"https://api.github.com/users/sareninden/orgs","repos_url":"https://api.github.com/users/sareninden/repos","events_url":"https://api.github.com/users/sareninden/events{/privacy}","received_events_url":"https://api.github.com/users/sareninden/received_events","type":"User","site_admin":false},"created_at":"2016-08-11T10:04:27Z","updated_at":"2016-08-11T10:04:27Z","body":"I did not add my fast files since they seem not to be relevant in this case.\r\n\r\nKind regards\r\n\r\nSaren"}}
{"actor":{"display_login":"sareninden"}}