{"action":"created","issue":{"url":"https://api.github.com/repos/GitTools/GitVersion/issues/756","repository_url":"https://api.github.com/repos/GitTools/GitVersion","labels_url":"https://api.github.com/repos/GitTools/GitVersion/issues/756/labels{/name}","comments_url":"https://api.github.com/repos/GitTools/GitVersion/issues/756/comments","events_url":"https://api.github.com/repos/GitTools/GitVersion/issues/756/events","html_url":"https://github.com/GitTools/GitVersion/issues/756","id":128584742,"number":756,"title":"Prerelease number is not scoped to prerelease label in continuous delivery","user":{"login":"qetza","id":8191369,"avatar_url":"https://avatars.githubusercontent.com/u/8191369?v=3","gravatar_id":"","url":"https://api.github.com/users/qetza","html_url":"https://github.com/qetza","followers_url":"https://api.github.com/users/qetza/followers","following_url":"https://api.github.com/users/qetza/following{/other_user}","gists_url":"https://api.github.com/users/qetza/gists{/gist_id}","starred_url":"https://api.github.com/users/qetza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qetza/subscriptions","organizations_url":"https://api.github.com/users/qetza/orgs","repos_url":"https://api.github.com/users/qetza/repos","events_url":"https://api.github.com/users/qetza/events{/privacy}","received_events_url":"https://api.github.com/users/qetza/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-25T16:51:58Z","updated_at":"2016-04-04T09:22:58Z","closed_at":null,"body":"Hi,\r\n\r\nWhen i'm in continuous delivery mode and i have the following commit tree:\r\n\r\n- commit 1\r\n- commit 2 <- tag \"0.1.0-test.1\"\r\n- commit 3 <- branch \"feature/test\" & \"master\"\r\n\r\nWith the tag configuration \"useBranchName\" for feature branches and \"beta\" for master i would expect that:\r\n\r\n- calling GitVersion on \"feature/test\" would return \"0.1.0-test.2\" because there is a tag \"0.1.0-test.1\" in the parents\r\n- calling GitVersion on \"master\" would return \"0.1.0-beta.1\" because it's the first version with the beta label.\r\n\r\nInstead the call on \"master\" returns \"0.1.0-beta.2\" because the number computation takes into account all tags.\r\n\r\nI'll push later today a pull request with a unit test for this scenario and a potential fix."},"comment":{"url":"https://api.github.com/repos/GitTools/GitVersion/issues/comments/205208590","html_url":"https://github.com/GitTools/GitVersion/issues/756#issuecomment-205208590","issue_url":"https://api.github.com/repos/GitTools/GitVersion/issues/756","id":205208590,"user":{"login":"asbjornu","id":12283,"avatar_url":"https://avatars.githubusercontent.com/u/12283?v=3","gravatar_id":"","url":"https://api.github.com/users/asbjornu","html_url":"https://github.com/asbjornu","followers_url":"https://api.github.com/users/asbjornu/followers","following_url":"https://api.github.com/users/asbjornu/following{/other_user}","gists_url":"https://api.github.com/users/asbjornu/gists{/gist_id}","starred_url":"https://api.github.com/users/asbjornu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asbjornu/subscriptions","organizations_url":"https://api.github.com/users/asbjornu/orgs","repos_url":"https://api.github.com/users/asbjornu/repos","events_url":"https://api.github.com/users/asbjornu/events{/privacy}","received_events_url":"https://api.github.com/users/asbjornu/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T09:22:58Z","updated_at":"2016-04-04T09:22:58Z","body":"I assume this can be closed, then? :smile: "}}