mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-23 09:18:15 -06:00
Rework the merge box after GitHub, fix auto merge edge cases, and add `auto_merge` to the pull request API. - Review, checks, mergeability and blocker sections that refresh while checks run, each rendered from a `pullMergeBoxSection` instead of the flat info item list. - Auto merge waits out conflicts, and is canceled on close, WIP, or a retarget or push by a non-writer. - Bypassing branch protection needs an explicit checkbox. - Merging follows the delete branch setting, and the timeline can restore the deleted branch. - Unrelated branches get their own status instead of a conflict. - The merge API answers a merge blocked by an open dependency with 422 instead of 500. <img width="600" alt="Merge box ready to merge" src="https://github.com/user-attachments/assets/95dcec16-fba5-446f-81f9-5af1245c887f" /> <img width="600" alt="Merge box with review required and checks pending" src="https://github.com/user-attachments/assets/640ec08e-a964-4520-85e1-5c606dfaf222" /> Fixes: https://github.com/go-gitea/gitea/issues/39851 Fixes: https://github.com/go-gitea/gitea/issues/24513 Assisted-by: Claude Code:claude-opus-5-5 --------- Signed-off-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io>