-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Error while rebasing PR with conflicts #4078
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
Comments
GitHub's docs discuss the issue. They just detect the conflicts and ask the user to rebase manually on the base branch and force push. |
Can it be fixed sooner than 1.9.0 Milestone, please. It's quite inconvenient... |
AFAIK no one is working on this issue. The assigned milestone does not reflect the actual planned release for the fix/bug. |
OK, so what is the actual planned release?:) |
I think we should fix that on v1.9 or before. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. You can re-open it if needed. |
2.17.0
4.16.11
[x]
): Locally tested with SQLiteDescription
I am trying to merge a pull request with the "Rebase and Merge" style. The pull request UI shows me that "[t]his pull request can be merged automatically". When I now click the button, an error page 500 is shown with the message "
An error has occurred : git rebase [/home/julian/.gitea/repositories/apricote/rebase-conflict.git -> /home/julian/go/src/code.gitea.io/gitea/data/tmp/local-repo/merge-249575514.git]: error: Failed to merge in the changes.
" and the PR did not get merged.I think this bug is happening because the
PullRequestStatusMergeable
is set when the sum of all commits is auto-mergeable, this makes sense and works for the normal merge and also squashing. But because rebasing will merge in every commit on its own, any conflict that arises will immediately stop the (automatic) rebase.You can check out the example repository at try.gitea.io/apricote/rebase-conflict, if you fork it to your own account and try to rebase the
feature
onto themaster
branch the error should surface.This error also happens if using the proposed "rebase and merge (--no-ff)" feature in #4052.
Screenshots
The text was updated successfully, but these errors were encountered: