Skip to content

[Question] Is this Version flow possible? #1295

@JonCubed

Description

@JonCubed

I've been playing around with GitVersion trying to get the following version calculation flow to work

master
  * (HEAD, calulated version: 1.1.0)
  |
  * (tag: release/v1.0.0, calculated version: 1.0.0)
  |
  * (calulated version: 0.4.1)
  |\
  | \
  |  * (branch: feature/bar, calculated version: 0.4.1-bar)
  |  |
  |  * (branch: feature/bar, +semver: patch, calculated version: 0.4.1-bar)
  | /
  |/
  * (calulated version: 0.4.0)
  |\
  | \
  |  * (branch: feature/foo, calculated version: 0.4.0-foo)
  |  |
  |  * (branch: feature/foo, calculated version: 0.4.0-foo)
  | /
  |/
  * (calculated version: 0.3.0)
  |
  * (calculated version: 0.2.0)
  |
  * (initial commit, calculated version: 0.1.0)

but haven't had much luck. Is it possible with v3 or v4?

It seems like I want to use Mainline but that seems to only increment Patch and I want it to increment Minor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions