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
..
activity.go Add top author stats to activity page (#9615) 5 years ago
attachment.go Add Content-Length header to HEAD requests (#14542) 3 years ago
blame.go Show dropdown with all statuses for commit (#13977) 4 years ago
branch.go Create tag on ui (#13467) 3 years ago
commit.go Whitespace in commits (#14650) 3 years ago
compare.go Make manual merge autodetection optional and add manual merge as merge method (#12543) 3 years ago
download.go Add Content-Length header to HEAD requests (#14542) 3 years ago
editor.go Migrate to use jsoniter instead of encoding/json (#14841) 3 years ago
editor_test.go Add Close() method to gogitRepository (#8901) 5 years ago
http.go Move macaron to chi (#14293) 3 years ago
issue.go Make manual merge autodetection optional and add manual merge as merge method (#12543) 3 years ago
issue_dependency.go Fix wrong permissions check when issues/prs shared operations (#9885) 5 years ago
issue_label.go Move macaron to chi (#14293) 3 years ago
issue_label_test.go Move macaron to chi (#14293) 3 years ago
issue_lock.go Move macaron to chi (#14293) 3 years ago
issue_stopwatch.go Display current stopwatch in navbar (#14122) 4 years ago
issue_test.go Refactor combine label comments with tests (#13619) 4 years ago
issue_timetrack.go Add UI to delete tracked times (#14100) 3 years ago
issue_watch.go Fix PR/issue redirects when having external tracker (#9339) 5 years ago
lfs.go Display SVG files as images instead of text (#14101) 4 years ago
main_test.go Unit tests for wiki routers (#3022) 7 years ago
middlewares.go Add gitea-vet (#10948) 4 years ago
migrate.go Move macaron to chi (#14293) 3 years ago
milestone.go Move macaron to chi (#14293) 3 years ago
projects.go Sort / Move project boards (#14634) 3 years ago
projects_test.go KanBan: be able to set default board (#14147) 4 years ago
pull.go Make manual merge autodetection optional and add manual merge as merge method (#12543) 3 years ago
pull_review.go Add dismiss review feature (#12674) 3 years ago
release.go Create tag on ui (#13467) 3 years ago
release_test.go Move macaron to chi (#14293) 3 years ago
repo.go Repository transfer has to be confirmed, if user can not create repo for new owner (#14792) 3 years ago
search.go Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999) 3 years ago
setting.go Make manual merge autodetection optional and add manual merge as merge method (#12543) 3 years ago
setting_protected_branch.go Move macaron to chi (#14293) 3 years ago
settings_test.go Move macaron to chi (#14293) 3 years ago
topic.go Add API endpoint for accessing repo topics (#7963) 5 years ago
view.go Repository transfer has to be confirmed, if user can not create repo for new owner (#14792) 3 years ago
webhook.go Migrate to use jsoniter instead of encoding/json (#14841) 3 years ago
wiki.go Move macaron to chi (#14293) 3 years ago
wiki_test.go Move macaron to chi (#14293) 3 years ago