-
-
Notifications
You must be signed in to change notification settings - Fork 439
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
Cannot create a Pull Request when it flags conflicts #3241
Comments
Please do what I suggested here and remove the unnecessary steps. I want to confirm that you aren't seeing this conflict because of those steps. |
@peter-evans Sorry, it was a transcription error in the issue description (updated description), I tested it with the changes you suggested here |
I'm not sure if this is the cause of the problem, but because you are creating two pull requests, the branches need to be unique. -branch: release/${{ inputs.version-name }}
+branch: release/${{ matrix.branch }}/${{ inputs.version-name }} |
Did you make this change, and are still seeing an issue? |
@peter-evans Applying this change still causes the error to persist, and the requirement I have is to keep the same branch for the two pull requests, which, as I mentioned before, works well in the case where there are no files that conflict. |
I don't think that is going to work. I'm fairly sure that a branch can't be shared by multiple pull requests, but maybe I mis-remember. I think the problem might be related to the base. You need a consistent base for each target. You should checkout the correct base for each. - uses: actions/checkout@v4
with:
fetch-depth: 0
+ ref: ${{ matrix.branch }} The remove this line from the action inputs. You don't need it because the action works out the base from the checked out branch. - base: ${{ matrix.branch }} |
I'm almost certain this is not going to work unless you make two separate branches as suggested here. |
Closing this for now. Feel free to continue the conversation if you need to. |
Subject of the issue
I am trying to create a pull request but when marking conflicts it is not created. Is there a way to escape this validation and the PR is created with the conflicts so they can be resolved manually?
Steps to reproduce
Result
The text was updated successfully, but these errors were encountered: