Closed igordertigor closed 23 hours ago
@igordertigor, if you are still experiencing this problem, please try upgrading to our latest version and trying again. There were significant improvements to the version determination algorithm in v8+
.
Since you are coming from v7
you will need to review the docs about migration to v8
(especially configuration).
v8
is locally testable using commands:
semantic-release version --print
# or
semantic-release -vv --noop version
I believe the problem you are experiencing was due to a bug in the tag finding algorithm that I fixed in v9.0.3
.
This issue has not received a response in 14 days. If no response is received in 7 days, it will be closed. We look forward to hearing from you.
This issue was closed because no response was received.
The problem
When working with a team, different team members typically work on branches and merge their work afterwards. Semantic release appears entirely confused by this pattern and either does not find it's own past versions (see example below) or skips over the commits inside the merged branch. I observed this behaviour with v7.x.x and wasn't able to even get my (offline) example to work with v8.x.x. For semantic-release 8.x.x it appears impossible to test anything out locally (or I just didn't find it in the documentation).
Expected behavior
I expected semantic-release to correctly walk back along a merged branch to identify the commits that go into that branch and then decide on the correct version bump based on all parent branches.
Environment
The following is formatted as a cram and can thus be replicated by just running the example using cram. Of course, last couple of example calls are probably not the desired behaviour. I'm running on Ubuntu 20.04.