You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
a1012112796 a5279b74b6
Make manual merge autodetection optional and add manual merge as merge method (#12543)
* Make auto check manual merge as a chooseable mod and add manual merge way on ui

as title, Before this pr, we use same way with GH to check manually merge.
It good, but in some special cases, misjudgments can occur. and it's hard
to fix this bug. So I add option to allow repo manager block "auto check manual merge"
function, Then it will have same style like gitlab(allow empty pr). and to compensate for
not being able to detect THE PR merge automatically, I added a manual approach.

Signed-off-by: a1012112796 <1012112796@qq.com>

* make swager

* api support

* ping ci

* fix TestPullCreate_EmptyChangesWithCommits

* Apply suggestions from code review

Co-authored-by: zeripath <art27@cantab.net>

* Apply review suggestions and add test

* Apply suggestions from code review

Co-authored-by: zeripath <art27@cantab.net>

* fix build

* test error message

* make fmt

* Fix indentation issues identified by @silverwind

Co-authored-by: silverwind <me@silverwind.io>

* Fix tests and make manually merged disabled error on API the same

Signed-off-by: Andrew Thornton <art27@cantab.net>

* a small nit

* fix wrong commit id error

* fix bug

* simple test

* fix test

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years ago
..
branch Add pager to the branches page (#14202) 3 years ago
diff Make manual merge autodetection optional and add manual merge as merge method (#12543) 3 years ago
editor enhancement: add signoff option in commit form (#14516) 3 years ago
graph Direct avatar rendering (#13649) 4 years ago
issue Make manual merge autodetection optional and add manual merge as merge method (#12543) 3 years ago
migrate Fix truncated organization names (#14655) 3 years ago
projects Sort / Move project boards (#14634) 3 years ago
pulls Fix truncated organization names (#14655) 3 years ago
release Create tag on ui (#13467) 3 years ago
settings Make manual merge autodetection optional and add manual merge as merge method (#12543) 3 years ago
wiki add preview support for wiki editor when disable simpleMDE (#14757) 3 years ago
activity.tmpl Fix missleading sentence (#14829) 3 years ago
blame.tmpl Fix whitespace rendering in diff (#13415) 4 years ago
branch_dropdown.tmpl Create tag on ui (#13467) 3 years ago
clone_buttons.tmpl Consolidate clone button templates (#14023) 4 years ago
commit_page.tmpl Show dropdown with all statuses for commit (#13977) 4 years ago
commit_status.tmpl Show dropdown with all statuses for commit (#13977) 4 years ago
commit_statuses.tmpl Show dropdown with all statuses for commit (#13977) 4 years ago
commits.tmpl Add class to page content to unify top margin (#13766) 4 years ago
commits_list.tmpl Show dropdown with all statuses for commit (#13977) 4 years ago
commits_list_small.tmpl Show dropdown with all statuses for commit (#13977) 4 years ago
commits_table.tmpl Fix tooltips and issue dependency styles (#13458) 4 years ago
create.tmpl Add helper descriptions on new repo page (#14591) 3 years ago
empty.tmpl Consolidate clone button templates (#14023) 4 years ago
forks.tmpl Direct avatar rendering (#13649) 4 years ago
graph.tmpl Add class to page content to unify top margin (#13766) 4 years ago
header.tmpl Repository transfer has to be confirmed, if user can not create repo for new owner (#14792) 3 years ago
home.tmpl Consolidate clone button templates (#14023) 4 years ago
icon.tmpl Do not display org avatar near icon for internal repos (#13957) 4 years ago
search.tmpl [Feature] add precise search type for Elastic Search (#12869) 3 years ago
shabox_badge.tmpl Fix avatar template error (#13833) 4 years ago
sub_menu.tmpl Move macaron to chi (#14293) 3 years ago
upload.tmpl Fix attachments list in edit comment (#13036) 4 years ago
user_cards.tmpl Direct avatar rendering (#13649) 4 years ago
view_file.tmpl Display SVG files as images instead of text (#14101) 4 years ago
view_list.tmpl Show dropdown with all statuses for commit (#13977) 4 years ago
watchers.tmpl Add class to page content to unify top margin (#13766) 4 years ago