{"action":"created","issue":{"url":"https://api.github.com/repos/boldpoker/edeliver/issues/208","repository_url":"https://api.github.com/repos/boldpoker/edeliver","labels_url":"https://api.github.com/repos/boldpoker/edeliver/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/boldpoker/edeliver/issues/208/comments","events_url":"https://api.github.com/repos/boldpoker/edeliver/issues/208/events","html_url":"https://github.com/boldpoker/edeliver/issues/208","id":217519471,"number":208,"title":"AUTO_VERSION doesn't use branch when set new version","user":{"login":"gpad","id":642430,"avatar_url":"https://avatars3.githubusercontent.com/u/642430?v=3","gravatar_id":"","url":"https://api.github.com/users/gpad","html_url":"https://github.com/gpad","followers_url":"https://api.github.com/users/gpad/followers","following_url":"https://api.github.com/users/gpad/following{/other_user}","gists_url":"https://api.github.com/users/gpad/gists{/gist_id}","starred_url":"https://api.github.com/users/gpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpad/subscriptions","organizations_url":"https://api.github.com/users/gpad/orgs","repos_url":"https://api.github.com/users/gpad/repos","events_url":"https://api.github.com/users/gpad/events{/privacy}","received_events_url":"https://api.github.com/users/gpad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-28T10:47:45Z","updated_at":"2017-03-31T14:42:14Z","closed_at":null,"body":"If you try tu use `AUTO_VERSION=commit-count+git-revision+branch` with distillery the release is always marked as master also if you are on different branch.\r\n\r\nThe bug probably is located in this [here](https://github.com/boldpoker/edeliver/blob/2f2abd952fb960f1250cb1a277eac709dec28b8b/libexec/erlang#L176) where it's not pass the `BRANCH` variable. Instead in this [line](https://github.com/boldpoker/edeliver/blob/2f2abd952fb960f1250cb1a277eac709dec28b8b/libexec/erlang#L186) it's passed.\r\n\r\nI created a [pull request](https://github.com/boldpoker/edeliver/pull/207)  and I test in my environment where the test is present and now it's corrected.\r\n\r\n### Environment\r\n\r\n* Edeliver version (`mix edeliver --version`): edeliver v1.4.2\r\n* Elixir version (`elixir -v`): Elixir 1.4.1\r\n* Build tool and version (distillery|exrm): distillery\r\n* Operating system (on build / deploy hosts): linux (ubuntu 16.04/14.04)\r\n* Are you using an umbrella project (yes|no): no\r\n\r\n### Verbose output\r\n\r\n* Are there more information when running with `--verbose`?\r\n* Can you narrow down the code line causing the issue when running with `--debug`?\r\n* Please remove any private data from the output before pasting it here (login credentials, ip addresses user names etc.)\r\n\r\n### Current behavior\r\n\r\nmix edeliver build release --branch=staging --mix-env=staging\r\n\r\ngenerate 0.0.1+174-18ca1a0-master\r\n\r\n### Expected behavior\r\n\r\nshould generate 0.0.1+174-18ca1a0-staging"},"comment":{"url":"https://api.github.com/repos/boldpoker/edeliver/issues/comments/290731195","html_url":"https://github.com/boldpoker/edeliver/issues/208#issuecomment-290731195","issue_url":"https://api.github.com/repos/boldpoker/edeliver/issues/208","id":290731195,"user":{"login":"ryanswapp","id":4509676,"avatar_url":"https://avatars3.githubusercontent.com/u/4509676?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanswapp","html_url":"https://github.com/ryanswapp","followers_url":"https://api.github.com/users/ryanswapp/followers","following_url":"https://api.github.com/users/ryanswapp/following{/other_user}","gists_url":"https://api.github.com/users/ryanswapp/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanswapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanswapp/subscriptions","organizations_url":"https://api.github.com/users/ryanswapp/orgs","repos_url":"https://api.github.com/users/ryanswapp/repos","events_url":"https://api.github.com/users/ryanswapp/events{/privacy}","received_events_url":"https://api.github.com/users/ryanswapp/received_events","type":"User","site_admin":false},"created_at":"2017-03-31T14:42:14Z","updated_at":"2017-03-31T14:42:14Z","body":"I believe I've encountered the same issue. When running:\r\n```\r\nmix edeliver upgrade production —auto-version=git-revision \r\n```\r\nThe FROM option is set to \"Node\" instead of the last revision hash. \r\n\r\nThis command has worked for me a number of times and started failing today. The only thing different is that my local machine is running Elixir 1.4.2 instead of 1.3.2. The remote machine still has the same elixir version. I am on edeliver 1.4.0."}}
{"actor":{"display_login":"ryanswapp"}}