merge-branch icon indicating copy to clipboard operation
merge-branch copied to clipboard

Auto resolve conflicts

Open NitzanShifrin opened this issue 3 years ago • 2 comments
trafficstars

Hey there! Any chance to add a flag to decide what branch to take when conflicts are happening. We want to have different versions for different branches, but we cant resolve the conflicts for now.

NitzanShifrin avatar Nov 22 '21 13:11 NitzanShifrin

After looking into this it doesn't seem possible to do this because the github API doesn't support merging of branches with conflicts. https://docs.github.com/en/rest/reference/branches#merge-a-branch

It might be possible to check out the code and do something outside of the API but I do not think the author of this project would want to do that given they're explicitly using the github API.

My recommendation would be to first bug Github to add it as a feature to their rest API.

andrewfenn avatar Jan 26 '22 05:01 andrewfenn

It would be useful if the step could set a flag if there was a conflict so we can take post actions such as commenting on the PR a manual resolution needs to happen

alexcroox avatar Mar 11 '22 13:03 alexcroox