Skip to content

Incorrect versioning when merging between two branches #60

@j-choi1

Description

@j-choi1

Assume default semver config and we have two branches: master and develop

master current version is 1.0.0 and develop is a copy of the master branch.

Example 1:

  1. In develop, commit feat: and merge develop into master via PR.
  2. In master, run releaseVersion which will release 1.1.0.
  3. Merge master into develop via PR.
  4. In develop, commit fix: and run printVersion which will show 1.2.0.

In step 4, shouldn't the version print out 1.1.1?

Example 2:

  1. In develop, commit feat!: and merge develop into master via PR.
  2. In master, run releaseVersion which will release 2.0.0.
  3. Merge master into develop via PR.
  4. In develop, commit fix: and run printVersion which will show 3.0.0.

In step 4, shouldn't the version print out 2.0.1?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions