{"action":"created","issue":{"url":"https://api.github.com/repos/ParticularLabs/GitVersion/issues/335","labels_url":"https://api.github.com/repos/ParticularLabs/GitVersion/issues/335/labels{/name}","comments_url":"https://api.github.com/repos/ParticularLabs/GitVersion/issues/335/comments","events_url":"https://api.github.com/repos/ParticularLabs/GitVersion/issues/335/events","html_url":"https://github.com/ParticularLabs/GitVersion/issues/335","id":53367875,"number":335,"title":"Feature branch with GitHubFlowVersion doesn't append pre release tag","user":{"login":"MacDennis76","id":6223582,"avatar_url":"https://avatars.githubusercontent.com/u/6223582?v=3","gravatar_id":"","url":"https://api.github.com/users/MacDennis76","html_url":"https://github.com/MacDennis76","followers_url":"https://api.github.com/users/MacDennis76/followers","following_url":"https://api.github.com/users/MacDennis76/following{/other_user}","gists_url":"https://api.github.com/users/MacDennis76/gists{/gist_id}","starred_url":"https://api.github.com/users/MacDennis76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MacDennis76/subscriptions","organizations_url":"https://api.github.com/users/MacDennis76/orgs","repos_url":"https://api.github.com/users/MacDennis76/repos","events_url":"https://api.github.com/users/MacDennis76/events{/privacy}","received_events_url":"https://api.github.com/users/MacDennis76/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ParticularLabs/GitVersion/milestones/11","labels_url":"https://api.github.com/repos/ParticularLabs/GitVersion/milestones/11/labels","id":940509,"number":11,"title":"3.0.0","description":"","creator":{"login":"gep13","id":1271146,"avatar_url":"https://avatars.githubusercontent.com/u/1271146?v=3","gravatar_id":"","url":"https://api.github.com/users/gep13","html_url":"https://github.com/gep13","followers_url":"https://api.github.com/users/gep13/followers","following_url":"https://api.github.com/users/gep13/following{/other_user}","gists_url":"https://api.github.com/users/gep13/gists{/gist_id}","starred_url":"https://api.github.com/users/gep13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gep13/subscriptions","organizations_url":"https://api.github.com/users/gep13/orgs","repos_url":"https://api.github.com/users/gep13/repos","events_url":"https://api.github.com/users/gep13/events{/privacy}","received_events_url":"https://api.github.com/users/gep13/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":6,"state":"open","created_at":"2015-01-18T11:39:35Z","updated_at":"2015-02-14T18:52:35Z","due_on":"2015-01-31T00:00:00Z","closed_at":null},"comments":22,"created_at":"2015-01-05T06:25:46Z","updated_at":"2015-02-15T14:38:37Z","closed_at":"2015-02-14T18:52:35Z","body":"I am testing version 2.0.0 of GitVersion, the command line version in combination with a GitHubFlow repository. This repo has a master branch and a number of feature branches.\r\n\r\nThe latest tag (on master) is equal to 1.6.0.\r\n\r\nWhen working with feature branches the following is the result, in this example a feature branch called 'feature-test' is used:\r\n\r\n{\r\n  \"Major\":1,\r\n  \"Minor\":6,\r\n  \"Patch\":1,\r\n  \"PreReleaseTag\":\"\",\r\n  \"PreReleaseTagWithDash\":\"\",\r\n  \"BuildMetaData\":9,\r\n  \"FullBuildMetaData\":\"9.Branch.feature-test.Sha.747cf43601b10dd87508ba7d72a47c0e9321294b\",\r\n  \"MajorMinorPatch\":\"1.6.1\",\r\n  \"SemVer\":\"1.6.1\",\r\n  \"LegacySemVer\":\"1.6.1\",\r\n  \"LegacySemVerPadded\":\"1.6.1\",\r\n  \"AssemblySemVer\":\"1.6.1.0\",\r\n  \"AssemblyFileSemVer\":\"1.6.1.0\",\r\n  \"FullSemVer\":\"1.6.1+9\",\r\n  \"InformationalVersion\":\"1.6.1+9.Branch.feature-test.Sha.747cf43601b10dd87508ba7d72a47c0e9321294b\",\r\n  \"ClassicVersion\":\"1.6.1.9\",\r\n  \"ClassicVersionWithTag\":\"1.6.1.9\",\r\n  \"BranchName\":\"feature-test\",\r\n  \"Sha\":\"747cf43601b10dd87508ba7d72a47c0e9321294b\",\r\n  \"NuGetVersionV2\":\"1.6.1\",\r\n  \"NuGetVersion\":\"1.6.1\"\r\n}\r\n\r\nIs this expected behaviour?\r\nBecause this is a pre release I would have expect a pre release tag?\r\nThis is without a NextVersion.txt file, when I add one with a version equal to '1.7.0' the following is the result:\r\n\r\n{\r\n  \"Major\":1,\r\n  \"Minor\":7,\r\n  \"Patch\":0,\r\n  \"PreReleaseTag\":\"\",\r\n  \"PreReleaseTagWithDash\":\"\",\r\n  \"BuildMetaData\":11,\r\n  \"FullBuildMetaData\":\"11.Branch.feature-test.Sha.bf90ef4e6e000dd876f47fae510052ddfae8c23d\",\r\n  \"MajorMinorPatch\":\"1.7.0\",\r\n  \"SemVer\":\"1.7.0\",\r\n  \"LegacySemVer\":\"1.7.0\",\r\n  \"LegacySemVerPadded\":\"1.7.0\",\r\n  \"AssemblySemVer\":\"1.7.0.0\",\r\n  \"AssemblyFileSemVer\":\"1.7.0.0\",\r\n  \"FullSemVer\":\"1.7.0+11\",\r\n  \"InformationalVersion\":\"1.7.0+11.Branch.feature-test.Sha.bf90ef4e6e000dd876f47fae510052ddfae8c23d\",\r\n  \"ClassicVersion\":\"1.7.0.11\",\r\n  \"ClassicVersionWithTag\":\"1.7.0.11\",\r\n  \"BranchName\":\"feature-test\",\r\n  \"Sha\":\"bf90ef4e6e000dd876f47fae510052ddfae8c23d\",\r\n  \"NuGetVersionV2\":\"1.7.0\",\r\n  \"NuGetVersion\":\"1.7.0\"\r\n}\r\n\r\nMy plan is to use GitVersion in combination with TeamCity and Octopus Deploy. Each feature should be deployable to a testing environment and this means that I would need to be able to also package (NuGet) and deploy pre releases (features).\r\n\r\nSo, very curious to know if this is normal behaviour.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ParticularLabs/GitVersion/issues/comments/74419801","html_url":"https://github.com/ParticularLabs/GitVersion/issues/335#issuecomment-74419801","issue_url":"https://api.github.com/repos/ParticularLabs/GitVersion/issues/335","id":74419801,"user":{"login":"MacDennis76","id":6223582,"avatar_url":"https://avatars.githubusercontent.com/u/6223582?v=3","gravatar_id":"","url":"https://api.github.com/users/MacDennis76","html_url":"https://github.com/MacDennis76","followers_url":"https://api.github.com/users/MacDennis76/followers","following_url":"https://api.github.com/users/MacDennis76/following{/other_user}","gists_url":"https://api.github.com/users/MacDennis76/gists{/gist_id}","starred_url":"https://api.github.com/users/MacDennis76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MacDennis76/subscriptions","organizations_url":"https://api.github.com/users/MacDennis76/orgs","repos_url":"https://api.github.com/users/MacDennis76/repos","events_url":"https://api.github.com/users/MacDennis76/events{/privacy}","received_events_url":"https://api.github.com/users/MacDennis76/received_events","type":"User","site_admin":false},"created_at":"2015-02-15T14:38:37Z","updated_at":"2015-02-15T14:38:37Z","body":"Great work so far on 3.0.0! I very much like the direction this tool is heading.\r\nAnyway, testing out the latest 3.0 release branch ..\r\n\r\nFor a branch called TOHISP-35 (a JIRA key) and 27 commits ahead, this results in the following NuGetVersion in Continuous Deployment mode:\r\n1.6.1-TOHISP-350027\r\n\r\nBut how do I add a hyphen after '35'? The version now doesn't make much sense.\r\nShouldn't this be by default? If a branch ends with a number then add a hyphen?\r\n\r\n"}}