PR conflicts handled different to MS GitHub? #2344

Open
opened 2026-01-28 20:15:09 +01:00 by buhtz · 4 comments

Comment

I wonder if I have made something wrong and/or Forgejo behave different to Microsoft GitHub.

There is a PR with a merge conflict. No problem. I solved the conflict on my local branch and pushed it back. The solved version lives in doc/concept branch. The proof is that you can read "January 2026" in the README.md. But looking in the PRs diff the commit is missing and the "January 2026" does not appear in the README.md.

Any ideas on this?

### Comment I wonder if I have made something wrong and/or Forgejo behave different to Microsoft GitHub. There is a [PR with a merge conflict](https://codeberg.org/buhtz/hyperorg/pulls/186). No problem. I solved the conflict on my local branch and pushed it back. The solved version lives in [doc/concept](https://codeberg.org/buhtz/hyperorg/src/branch/doc/concept) branch. The proof is that you can read "January 2026" in the README.md. But looking in the [PRs diff](https://codeberg.org/buhtz/hyperorg/pulls/186/files) the commit is missing and the "January 2026" does not appear in the README.md. Any ideas on this?
Member

Hi, your base branch latest already includes the January 2026 section, and thus, it is not in the diff again. See attached the commits view of both branches.

Hi, your base branch `latest` already includes the `January 2026` section, and thus, it is not in the diff again. See attached the commits view of both branches.
Member

I think I now understood your point. In the files diff view all files are shown without the merge conflict resolution, still at commit d74d. When you go now into the field for merging you may see
This pull request is broken due to missing fork information.

Workaround: I don't know how that happened, but could you just click on the very top on the Edit button and try to select the branch again? Or create a new PR from the same branch (probably you need to close the existing one first)?

Bug: Forgejo shouldn't link to a branch if the PR is broken.

Question: Did you maybe delete the branch and recreated it again?

I think I now understood your point. In the files diff view all files are shown without the merge conflict resolution, still at commit d74d. When you go now into the field for merging you may see `This pull request is broken due to missing fork information.` Workaround: I don't know how that happened, but could you just click on the very top on the Edit button and try to select the branch again? Or create a new PR from the same branch (probably you need to close the existing one first)? Bug: Forgejo shouldn't link to a branch if the PR is broken. Question: Did you maybe delete the branch and recreated it again?
Author

Hello Robert,
thank you for the reply. So I messed something up, it wasn't Forgejo. 😆

I think I'll play around with a test repo.

Is Forgejo able to handle merge conflicts like Microsoft GitHub does? I mean can it auto-solve if possible? And if not possible does it offer an editor window to solve existing conflicts in the UI?

Regards,
Christian

Hello Robert, thank you for the reply. So I messed something up, it wasn't Forgejo. 😆 I think I'll play around with a test repo. Is Forgejo able to handle merge conflicts like Microsoft GitHub does? I mean can it auto-solve if possible? And if not possible does it offer an editor window to solve existing conflicts in the UI? Regards, Christian
Member

Is Forgejo able to handle merge conflicts like Microsoft GitHub does? I mean can it auto-solve if possible?

I don’t know what GH does.

And if not possible does it offer an editor window to solve existing conflicts in the UI?

No, that would be a nice feature, indeed!

> Is Forgejo able to handle merge conflicts like Microsoft GitHub does? I mean can it auto-solve if possible? I don’t know what GH does. > And if not possible does it offer an editor window to solve existing conflicts in the UI? No, that would be a nice feature, indeed!
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Codeberg/Community#2344
No description provided.