{"action":"opened","issue":{"url":"https://api.github.com/repos/GitTools/GitVersion/issues/1668","repository_url":"https://api.github.com/repos/GitTools/GitVersion","labels_url":"https://api.github.com/repos/GitTools/GitVersion/issues/1668/labels{/name}","comments_url":"https://api.github.com/repos/GitTools/GitVersion/issues/1668/comments","events_url":"https://api.github.com/repos/GitTools/GitVersion/issues/1668/events","html_url":"https://github.com/GitTools/GitVersion/issues/1668","id":438014544,"node_id":"MDU6SXNzdWU0MzgwMTQ1NDQ=","number":1668,"title":"Using mainline mode, increment: minor ignores bugfix tags","user":{"login":"Jaykul","id":192942,"node_id":"MDQ6VXNlcjE5Mjk0Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/192942?v=4","gravatar_id":"","url":"https://api.github.com/users/Jaykul","html_url":"https://github.com/Jaykul","followers_url":"https://api.github.com/users/Jaykul/followers","following_url":"https://api.github.com/users/Jaykul/following{/other_user}","gists_url":"https://api.github.com/users/Jaykul/gists{/gist_id}","starred_url":"https://api.github.com/users/Jaykul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jaykul/subscriptions","organizations_url":"https://api.github.com/users/Jaykul/orgs","repos_url":"https://api.github.com/users/Jaykul/repos","events_url":"https://api.github.com/users/Jaykul/events{/privacy}","received_events_url":"https://api.github.com/users/Jaykul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-04-28T05:09:27Z","updated_at":"2019-04-28T05:09:27Z","closed_at":null,"author_association":"NONE","body":"Short version:\r\n\r\nIn the past I've tagged and released 1.3.0 and 1.3.1 and 1.3.2 ... but I've just recently decided to use `gitversion` and Mainline versioning. The problem is that between 1.3.0 and 1.3.1 there are a lot of commits to master ...\r\n\r\nIf I set `Increment: Patch` everything works as expected. But I wanted the default to be a feature build, and only be a bugfix if I explicitly say so.  However, if I set `Increment: Minor` then gitversion ignores my bugfix releases (stating that there are multiple versions that would produce 1.4.0 and then selecting the oldest one to start from and then incrementing `Minor` on every commit from there **ignoring** the fact that there's a newer commit tagged with versions.\r\n\r\nLong version:\r\n\r\n```text\r\ngitversion -showconfig\r\nassembly-versioning-scheme: MajorMinorPatch\r\nassembly-file-versioning-scheme: MajorMinorPatch\r\nassembly-informational-format: '{NuGetVersionV2}+Build.{env:BUILDCOUNT ?? 0}.Date.{CommitDate}.Branch.{env:SAFEBRANCHNAME ?? unknown}.Sha.{Sha}'\r\nassembly-versioning-format: '{Major}.{Minor}.{Patch}.{env:BUILDCOUNT ?? 0}'\r\nmode: Mainline\r\ntag-prefix: '[vV]'\r\ncontinuous-delivery-fallback-tag: ci\r\nnext-version: 1.4.0\r\nmajor-version-bump-message: '\\+semver:\\s?(breaking|major)'\r\nminor-version-bump-message: '\\+semver:\\s?(feature|minor)'\r\npatch-version-bump-message: '\\+semver:\\s?(fix|patch)'\r\nno-bump-message: '\\+semver:\\s?(none|skip)'\r\nlegacy-semver-padding: 4\r\nbuild-metadata-padding: 4\r\ncommits-since-version-source-padding: 4\r\ncommit-message-incrementing: MergeMessageOnly\r\nbranches:\r\n  master:\r\n    mode: Mainline\r\n    tag: ''\r\n    increment: Minor\r\n    prevent-increment-of-merged-branch-version: true\r\n    track-merge-target: false\r\n    regex: master$\r\n    source-branches:\r\n    - develop\r\n    - release\r\n    tracks-release-branches: false\r\n    is-release-branch: true\r\n    is-mainline: true\r\n  pull-request:\r\n    mode: Mainline\r\n    tag: rc\r\n    increment: Minor\r\n    prevent-increment-of-merged-branch-version: false\r\n    tag-number-pattern: '[/-](?<number>\\d+)'\r\n    track-merge-target: false\r\n    regex: (pull|pull\\-requests|pr)[/-]\r\n    source-branches:\r\n    - develop\r\n    - master\r\n    - release\r\n    - feature\r\n    - support\r\n    - hotfix\r\n    tracks-release-branches: false\r\n    is-release-branch: false\r\n    is-mainline: false\r\n  feature:\r\n    mode: Mainline\r\n    tag: useBranchName\r\n    increment: Minor\r\n    prevent-increment-of-merged-branch-version: false\r\n    track-merge-target: true\r\n    regex: .*/\r\n    source-branches:\r\n    - develop\r\n    - master\r\n    - release\r\n    - feature\r\n    - support\r\n    - hotfix\r\n    tracks-release-branches: false\r\n    is-release-branch: false\r\n    is-mainline: false\r\n```\r\n```text\r\ngitversion -diag\r\nINFO [04/28/19 0:50:31:09] Dumping commit graph:\r\nINFO [04/28/19 0:50:31:21] *   5d5fbf6 21 minutes ago  (refs/stash)\r\n|\\\r\n| * 2476932 21 minutes ago\r\n|/\r\n| *   7e9c9e0 27 minutes ago  (HEAD -> master, origin/master)\r\n| |\\\r\n|/ /\r\n| * 8d2aa13 2 hours ago  (origin/feature/Newlines, feature/Newlines)\r\n| | * eafbd0f 2 hours ago  (feature/Scope-8)\r\n| | * c8e0cef 4 hours ago\r\n| |/\r\n| * 1cfb701 4 hours ago\r\n| * bb5ac22 8 hours ago\r\n|/\r\n*   610c676 8 hours ago  (tag: v1.3.2, tag: 1.3.2)\r\n|\\\r\n| * 8839524 9 hours ago\r\n| * b65118a 11 hours ago\r\n| * 0dcdf0d 11 hours ago\r\n| * a649abb 4 days ago\r\n| * 277907b 4 days ago\r\n| * aab80ce 4 days ago\r\n| * 6dbc178 4 days ago\r\n| * 5fd6ccc 4 days ago\r\n| * 4df2f8a 4 days ago\r\n| * 96fca2e 5 days ago\r\n| * 7cd6ed5 3 weeks ago\r\n| * 1136eb7 3 weeks ago\r\n| * 86520db 3 weeks ago\r\n| * 9057dd1 7 weeks ago\r\n| * df9d5e2 5 months ago\r\n| * ea4d783 9 months ago\r\n| * 52202e6 9 months ago\r\n| * f594f4e 9 months ago\r\n| * 1645523 9 months ago\r\n| * 781ed49 9 months ago\r\n| * 75dc378 9 months ago\r\n| * 7691ede 9 months ago\r\n|/\r\n* bdba856 10 months ago  (tag: v1.3.1, tag: 1.3.1, origin/dev)\r\n* c3e4bd7 10 months ago\r\n* d236290 10 months ago\r\n* bb85d05 12 months ago  (tag: v1.3.0)\r\n*   8388ca6 12 months ago\r\n|\\\r\n| * d224849 12 months ago\r\n| *   4b81b22 12 months ago\r\n| |\\\r\n| | *   34e691b 12 months ago\r\n| | |\\\r\n| | |/\r\n| |/|\r\n| * | c5e38b4 12 months ago\r\n| * | 16490c2 12 months ago\r\n| * | d2e7e92 1 year ago\r\n| * | 7c6f36c 1 year ago\r\n| * | 2c818e8 1 year, 1 month ago\r\n| * | 69f9172 1 year, 2 months ago\r\n| * | 1136fb2 1 year, 2 months ago\r\n| * | 1f46ab6 1 year, 2 months ago\r\n|/ /\r\n| * 2ed0e33 1 year, 3 months ago\r\n|/\r\n* 244a7cb 1 year, 5 months ago  (tag: v1.2.0)\r\n* a825a55 1 year, 5 months ago\r\n* 1246f9d 1 year, 5 months ago\r\n* 991b463 1 year, 5 months ago\r\n* 455b7b5 1 year, 5 months ago\r\n* 2b0f12e 1 year, 5 months ago\r\n* 715618b 1 year, 6 months ago\r\n* e482fdd 1 year, 6 months ago\r\n* 212e38e 1 year, 6 months ago\r\n* 66af84a 1 year, 6 months ago\r\n* 08df6bf 1 year, 6 months ago  (tag: v1.1.1)\r\n* f24366d 1 year, 6 months ago\r\n* 5dba017 1 year, 6 months ago\r\n* e6218f4 1 year, 6 months ago\r\n* 6c77d7e 1 year, 7 months ago\r\n*   6fa3af4 1 year, 8 months ago\r\n|\\\r\n| * 960cd7f 1 year, 8 months ago\r\n| * 0f2b139 1 year, 8 months ago\r\n| * bab3b7c 2 years, 1 month ago\r\n| * dc398a2 2 years, 3 months ago\r\n| * 19c3b1c 2 years, 3 months ago\r\n| *   58c1ce6 2 years, 3 months ago\r\n| |\\\r\n| | * 4d87194 2 years, 8 months ago\r\n| * | 85101ed 2 years, 3 months ago\r\n| * | 66efeb5 2 years, 3 months ago\r\n| * | 20940d4 2 years, 3 months ago\r\n* | | 965ad0f 1 year, 11 months ago\r\n|/ /\r\n* | a7055cc 2 years, 3 months ago  (tag: 1.0.2)\r\n* | 15df149 2 years, 7 months ago\r\n* | 90c1985 2 years, 8 months ago\r\n* | d709010 2 years, 8 months ago  (tag: v1.0.0)\r\n* | 845f80d 2 years, 8 months ago\r\n|/\r\n* 2ad5338 3 years ago  (tag: v0.8, tag: 0.8)\r\n* 2ec49b2 3 years ago\r\n* 3e98542 3 years ago\r\n* 20805d6 3 years ago\r\n* 198c596 3 years ago\r\n* 3e94a12 3 years ago\r\n* 2c1eb17 3 years, 2 months ago  (tag: v0.3.1)\r\n* 53b0036 3 years, 2 months ago\r\n* 6c05067 3 years, 2 months ago  (tag: v0.3)\r\n* 21b1cc8 3 years, 2 months ago\r\n* e4793bd 3 years, 4 months ago\r\n* dbfb450 3 years, 4 months ago\r\n* fdd51ed 3 years, 4 months ago\r\n* f3a62b7 3 years, 6 months ago\r\n* a09aa09 3 years, 6 months ago\r\n* caaabc1 3 years, 6 months ago\r\n* 1d0c67b 3 years, 6 months ago\r\n* ac82069 3 years, 7 months ago\r\n* 9799be2 3 years, 7 months ago\r\n* 60f5977 3 years, 7 months ago\r\n\r\nINFO [04/28/19 0:50:31:22] Working directory: C:\\Users\\Joel\\Projects\\Modules\\Configuration\r\nINFO [04/28/19 0:50:31:22] IsDynamicGitRepository: False\r\nINFO [04/28/19 0:50:31:24] Returning Project Root from DotGitDirectory: C:\\Users\\Joel\\Projects\\Modules\\Configuration\\.git - C:\\Users\\Joel\\Projects\\Modules\\Configuration\r\nINFO [04/28/19 0:50:31:24] Running on Windows.\r\nINFO [04/28/19 0:50:31:25] IsDynamicGitRepository: False\r\nINFO [04/28/19 0:50:31:25] Returning Project Root from DotGitDirectory: C:\\Users\\Joel\\Projects\\Modules\\Configuration\\.git - C:\\Users\\Joel\\Projects\\Modules\\Configuration\r\nINFO [04/28/19 0:50:31:25] Project root is: C:\\Users\\Joel\\Projects\\Modules\\Configuration\r\nINFO [04/28/19 0:50:31:25] DotGit directory is: C:\\Users\\Joel\\Projects\\Modules\\Configuration\\.git\r\nINFO [04/28/19 0:50:31:26] IsDynamicGitRepository: False\r\nINFO [04/28/19 0:50:31:26] Returning Project Root from DotGitDirectory: C:\\Users\\Joel\\Projects\\Modules\\Configuration\\.git - C:\\Users\\Joel\\Projects\\Modules\\Configuration\r\nINFO [04/28/19 0:50:31:29] IsDynamicGitRepository: False\r\nINFO [04/28/19 0:50:31:29] Returning Project Root from DotGitDirectory: C:\\Users\\Joel\\Projects\\Modules\\Configuration\\.git - C:\\Users\\Joel\\Projects\\Modules\\Configuration\r\nINFO [04/28/19 0:50:31:39] Using latest commit on specified branch\r\nINFO [04/28/19 0:50:31:41] Running against branch: master (7e9c9e0adfe48f0507aa21ab62a51e3f0a27c22e)\r\nINFO [04/28/19 0:50:31:42] Begin: Calculating base versions\r\n  INFO [04/28/19 0:50:31:44] Fallback base version: 0.1.0 with commit count source 17afadc32e975ff60fbdd61f8e1eb755f66e9222 (Incremented: None)\r\n  INFO [04/28/19 0:50:31:50] NextVersion in GitVersion configuration file: 1.4.0 with commit count source External Source (Incremented: None)\r\n  INFO [04/28/19 0:50:31:52] Git tag '1.3.2': 1.3.2 with commit count source 610c676efdf5c77421fd58fcf88564d99588e20b (Incremented: 1.4.0)\r\n  INFO [04/28/19 0:50:31:55] Git tag 'v1.3.2': 1.3.2 with commit count source 610c676efdf5c77421fd58fcf88564d99588e20b (Incremented: 1.4.0)\r\n  INFO [04/28/19 0:50:31:58] Git tag '1.3.1': 1.3.1 with commit count source bdba856179c941971755890068c69e59a8261daa (Incremented: 1.4.0)\r\n  INFO [04/28/19 0:50:31:61] Git tag 'v1.3.1': 1.3.1 with commit count source bdba856179c941971755890068c69e59a8261daa (Incremented: 1.4.0)\r\n  INFO [04/28/19 0:50:31:65] Git tag 'v1.3.0': 1.3.0 with commit count source bb85d05d9ec27cbe5b1e3d02f9bab68352dd5b71 (Incremented: 1.4.0)\r\n  INFO [04/28/19 0:50:31:68] Git tag 'v1.2.0': 1.2.0 with commit count source 244a7cbc6f7f415fb989acb82637d42b46447099 (Incremented: 1.3.0)\r\n  INFO [04/28/19 0:50:31:71] Git tag 'v1.1.1': 1.1.1 with commit count source 08df6bf854e51932d21627fd6891aba3d8779b53 (Incremented: 1.2.0)\r\n  INFO [04/28/19 0:50:31:74] Git tag '1.0.2': 1.0.2 with commit count source a7055ccdd6aff8ef9a10877acc4a4913bc93a6d5 (Incremented: 1.1.0)\r\n  INFO [04/28/19 0:50:31:77] Git tag 'v1.0.0': 1.0.0 with commit count source d7090105c2969255cf247ac15b2f377fc06ae8a9 (Incremented: 1.1.0)\r\n  INFO [04/28/19 0:50:31:80] Git tag '0.8': 0.8.0 with commit count source 2ad53382c0c6e502d693d9daf008a25cf35739a4 (Incremented: 0.9.0)\r\n  INFO [04/28/19 0:50:31:83] Git tag 'v0.8': 0.8.0 with commit count source 2ad53382c0c6e502d693d9daf008a25cf35739a4 (Incremented: 0.9.0)\r\n  INFO [04/28/19 0:50:31:87] Git tag 'v0.3.1': 0.3.1 with commit count source 2c1eb171bba3079d1076703466e556051357b4f8 (Incremented: 0.4.0)\r\n  INFO [04/28/19 0:50:31:90] Git tag 'v0.3': 0.3.0 with commit count source 6c05067d91d7537b0db45bad44b3ededee36d6d6 (Incremented: 0.4.0)\r\n  INFO [04/28/19 0:50:31:97] Found multiple base versions which will produce the same SemVer (1.4.0), taking oldest source for commit counting (Git tag 'v1.3.0')\r\n  INFO [04/28/19 0:50:31:99] Base version used: Git tag 'v1.3.0': 1.3.0 with commit count source bb85d05d9ec27cbe5b1e3d02f9bab68352dd5b71 (Incremented: 1.4.0)\r\n  INFO [04/28/19 0:50:31:99] End: Calculating base versions (Took: 564.00ms)\r\n  INFO [04/28/19 0:50:31:99] Begin: Using mainline development mode to calculate current version\r\n    INFO [04/28/19 0:50:32:00] Found possible mainline branches: master\r\n    INFO [04/28/19 0:50:32:00] Mainline for current branch is master\r\n    INFO [04/28/19 0:50:32:02] Direct commit on master d236290733e80ef5b4dbe5da72bae2b7e80b18d0 incremented base versions Minor, now 1.4.0\r\n    INFO [04/28/19 0:50:32:03] Direct commit on master c3e4bd79ccd9cbe25af4f21bb12535a6c2cac230 incremented base versions Minor, now 1.5.0\r\n    INFO [04/28/19 0:50:32:04] Direct commit on master bdba856179c941971755890068c69e59a8261daa incremented base versions Minor, now 1.6.0\r\n    INFO [04/28/19 0:50:32:04] Merge commit 610c676efdf5c77421fd58fcf88564d99588e20b incremented base versions Minor, now 1.7.0\r\n    INFO [04/28/19 0:50:32:06] Merge commit 7e9c9e0adfe48f0507aa21ab62a51e3f0a27c22e incremented base versions Patch, now 1.7.1\r\n    INFO [04/28/19 0:50:32:06] 30 commits found between bb85d05d9ec27cbe5b1e3d02f9bab68352dd5b71 and 7e9c9e0adfe48f0507aa21ab62a51e3f0a27c22e\r\n  INFO [04/28/19 0:50:32:06] End: Using mainline development mode to calculate current version (Took: 74.00ms)\r\n```"}}
{"actor":{"display_login":"Jaykul"}}