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 PR #3186
Your Environment
- Version Used: 5.10.3
- Operating System and version (Windows 10, Ubuntu 18.04):