Skip to content

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

Closed

Description

@ni-fgenois

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?

Activity

  1. added this to the 6.x milestone on May 30, 2023
  2. 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[/+] on Jun 9, 2023
  3. github-actions commented on Sep 29, 2023

    @github-actions

    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.

  4. modified the milestones: 6.x, 6.0.0-beta.6 on Mar 9, 2024
  5. arturcic commented on Mar 9, 2024

    @arturcic
    Member

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

    Your GitReleaseManager bot 📦🚀

  6. simbeldev commented on Apr 22, 2024

    @simbeldev

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions