-
-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conflict handling #366
Comments
Related to #352 . |
Something like that should be implemented to support protected branches and opening PR-s - see #363.
We still need to report merge conflicts to user and somehow handle pushing, tagging, branch deletion, etc.
Can you explain it further? |
See PR #368 for the option (only skipping merge, not the part about creating a PR).
True. How would we do that ? It should be something that a CI can easily pick up to assign the build / stage a corresponding status. So... An exit status ? A text file ? A local git branch ? A remote git branch ? I think I prefer the remote git branch, see next point.
An alternative could be :
We could try to make these solutions generic to any merge conflict, implement several of them of offer them as conflict handling strategies the plugin user could use from. Though in some cases, the plugin makes two merges sequentially, so if the first merge fail, the plugin should fail no matter what. Anyway, most of the time, it's the merge into develop that will fail. A merge into master should never fail (but it can, so the plugin should crash and not try to handle the conflict). |
Hello, Can we use <skipMergeDevBranch> to our pom.xml for not merging to develop directly now. Is the PR merged ? Super excited to use this feature |
can we have a post-release branch (an intermediate branch) to handle merge conflict. After finish goal, once main is merged, it will create an intermediate branch and creates a MR to develop. The developers can merge the commit to develop upon resolving conflicts ? @aleksandr-m @AdrienHorgnies |
The |
Hi,
Using any finish flow that involves merging, the plugin can crash due to git conflicts.
It's mainly a problem for release-finish, which I will focus on in this issue.
As far as I understand, it's currently not possible to skip merging the commit done on the release branch. Depending on the configuration, one of the three following reference is merged:
So if there's a git conflict between the release branch and develop, it's not possible to use release-finish before manually solving the conflict, and it's blocking the release-finish from finishing.
Most of the time, I don't have the option to delay the release, and I basically reproduce the effect of the release-finish goal minus the merge into develop.
Is there something I'm missing ?
I'd like to suggest and implement (myself) one of the following :
Any of these three options would allow the developer to try the goal once, fail, then retry without the conflicting merge.
The text was updated successfully, but these errors were encountered: