saitho / semantic-release-backmerge

:twisted_rightwards_arrows: semantic-release plugin to back-merge a release into a develop branch
https://saitho.github.io/semantic-release-backmerge/
56 stars 11 forks source link

Error during backmerge even no conflicts on branches #36

Open PrzemyslawRodzik opened 2 years ago

PrzemyslawRodzik commented 2 years ago

Hi, I am currently working on automated version generation for my gitlab project. My workflow is as follows:

master -> release branch -> the appropriate version is generated when a new commit is added dev -> the place where the feature branches are marged into prelease branch -> branch created from dev branch. This branch generates prerelease versions, such as 1.12-prelease.1, etc.

Semantic-release (the versioning part) is run for:

-> master branch when a new commit is added to this branch, usually when the prerelease branch is merged into master, -> prerelease branch when a new commit is added to this branch.

Everything works fine.

Semantic-release (the part related to the backmerge) is called:

-> after new commit is added to the master branch, -> after new commit is added to the prerelease branch.

Everything is successful only if the dev branch does not contain a new commit, ie one that does not exist in the prerelease or master branch. In my case, this situation will often take place, because the prerelease branch will be merged into master after 24 hours (until then, new changes may be added to the dev branch, which are not yet supposed to be sent to the master branch.

I would like to ask for a help as I do not understand the error that occurs . After the description of the error, I concludes that it is not a branch conflict bug. Moreover, when I tried to merge master branch into dev manually, everything ends up successfully without any conflicts. Below I share the semantic-release config and error from gitlab runner. image Screenshot 2022-07-29 213221

mehdihadeli commented 1 year ago

I have same issue with latest version