Files
gitea-MIRROR/web_src/js/components
bircni b1c5fedd17 feat(pull): improve merge box, add auto_merge to PR API (#38404)
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>
2026-11-19 18:53:19 +00:00
..