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.
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.
![Screenshot 2022-07-29 213221](https://user-images.githubusercontent.com/51419578/181831476-664fe2cb-5c23-4b24-9d56-5a4ea545722d.png)