GitVersion icon indicating copy to clipboard operation
GitVersion copied to clipboard

[Bug] Wrong semver when making a PR from a hotfix branch to a main branch (issue #3187)

Open NightFox7 opened this issue 3 years ago • 0 comments

Describe the bug Running the gitversion calculation on a PR pull branch from Hotfix to Main result to a minor increment instead of a patch increment. Here is some diagnostic logs :

 INFO [09/07/22 14:25:07:29] Found possible parent branches: master, origin/hotfix/0.4.1
    WARN [09/07/22 14:25:07:29] Failed to inherit Increment branch configuration, ended up with: master, origin/hotfix/0.4.1
Falling back to develop branch config
  INFO [09/07/22 14:25:07:29] End: Attempting to inherit branch configuration from parent branch (Took: 48.56ms)

I believe the fallback to develop causes the minor increment.

Expected Behavior

A Patch increment

Actual Behavior

A Minor increment

Possible Fix

Steps to Reproduce

See the test in the PR

Your Environment

  • Version Used: 5.10.3
  • Operating System and version (Windows 10, Ubuntu 22.04):

NightFox7 avatar Sep 07 '22 16:09 NightFox7