Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Incrementing patch version automatically on main without tags nor specific commit messages #3570

Closed
ni-fgenois opened this issue May 29, 2023 Discussed in #2660 · 3 comments · Fixed by #3883
Closed
Labels
Milestone

Comments

@ni-fgenois
Copy link
Contributor

Discussed in #2660

Originally posted by franknarf8 April 13, 2021
Hello,

I have just upgraded my GitVersion to the latest, but I can't find a way to reproduce the behavior I expect, and used to achieve with the previous GitVersion. (the change appeared between since 5.0.0)

When using Mainline, I would expect that each merge commits to master cause the patch version to increment. (Without any commit messages required)

Using the following GitVersion.yml (I'm generating pip versions here, please disregard the branches) :

mode: Mainline
next-version: 1.0.0
branches:
  release:
    tag: 'rc'
  feature:
    regex: ^features?[/-]|^(pull|pull\-requests|pr)[/-]
    tag: 'dev'
  develop:
    tag: 'a'
  hotfix:
    tag: 'post'
ignore:
  sha: []
merge-message-formats: {}

With this dummy git repo :

*   0bac05d 3 minutes ago  (HEAD -> master)
|\
| * 2922409 3 minutes ago  (feature/first-feature)
| * 2246a3e 7 minutes ago
|/
* bc00c9f 7 minutes ago  (tag: 1.2.3)

GitVersion 5.6.8 is inferring : 1.2.3
whereas 5.0.0 inferred : 1.2.4

I would expect 1.2.4 here, how can I achieve this?

@HHobeck HHobeck added this to the 6.x milestone May 30, 2023
@HHobeck HHobeck added the bug label Jun 9, 2023
@HHobeck HHobeck changed the title Incrementing patch version automatically on main without tags nor specific commit messages [Bug] Incrementing patch version automatically on main without tags nor specific commit messages Jun 9, 2023
@arturcic arturcic added stale and removed stale labels Jun 30, 2023
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Sep 29, 2023
@arturcic arturcic removed the stale label Sep 29, 2023
@arturcic arturcic added stale and removed stale labels Oct 30, 2023
@HHobeck HHobeck linked a pull request Jan 28, 2024 that will close this issue
5 tasks
@HHobeck HHobeck closed this as completed Jan 28, 2024
@arturcic arturcic modified the milestones: 6.x, 6.0.0-beta.6 Mar 9, 2024
@arturcic
Copy link
Member

arturcic commented Mar 9, 2024

🎉 This issue has been resolved in version 6.0.0-beta.6 🎉
The release is available on:

Your GitReleaseManager bot 📦🚀

@simbeldev
Copy link

Given that this is still in beta... do we have any workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants