You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
// either `true` to enable AutodetectManualMerge, or `false` to prevent it. `has_pull_requests` must be `true`, Note: In some special cases, misjudgments can occur.
issues.pull_merged_at = `merged commit <a href="%[1]s">%[2]s</a> into <b>%[3]s</b> %[4]s`
1108
+
issues.manually_pull_merged_at = `merged commit <a href="%[1]s">%[2]s</a> into <b>%[3]s</b> %[4]s manually`
1108
1109
issues.close_comment_issue = Comment and Close
1109
1110
issues.reopen_issue = Reopen
1110
1111
issues.reopen_comment_issue = Comment and Reopen
@@ -1273,6 +1274,7 @@ pulls.compare_compare = pull from
1273
1274
pulls.filter_branch = Filter branch
1274
1275
pulls.no_results = No results found.
1275
1276
pulls.nothing_to_compare = These branches are equal. There is no need to create a pull request.
1277
+
pulls.nothing_to_compare_and_allow_empty_pr = These branches are equal. This PR will be empty.
1276
1278
pulls.has_pull_request = `A pull request between these branches already exists: <a href="%[1]s/pulls/%[3]d">%[2]s#%[3]d</a>`
1277
1279
pulls.create = Create Pull Request
1278
1280
pulls.title_desc = wants to merge %[1]d commits from <code>%[2]s</code> into <code id="branch_target">%[3]s</code>
@@ -1285,13 +1287,16 @@ pulls.reopen_to_merge = Please reopen this pull request to perform a merge.
1285
1287
pulls.cant_reopen_deleted_branch = This pull request cannot be reopened because the branch was deleted.
1286
1288
pulls.merged = Merged
1287
1289
pulls.merged_as = The pull request has been merged as <a rel="nofollow"class="ui sha"href="%[1]s"><code>%[2]s</code></a>.
1290
+
pulls.manually_merged = Manually merged
1291
+
pulls.manually_merged_as = The pull request has been manually merged as <a rel="nofollow"class="ui sha"href="%[1]s"><code>%[2]s</code></a>.
1288
1292
pulls.is_closed = The pull request has been closed.
1289
1293
pulls.has_merged = The pull request has been merged.
1290
1294
pulls.title_wip_desc = `<a href="#">Start the title with <strong>%s</strong></a> to prevent the pull request from being merged accidentally.`
1291
1295
pulls.cannot_merge_work_in_progress = This pull request is marked as a work in progress. Remove the <strong>%s</strong> prefix from the title when it's ready
1292
1296
pulls.data_broken = This pull request is broken due to missing fork information.
1293
1297
pulls.files_conflicted = This pull request has changes conflicting with the target branch.
1294
1298
pulls.is_checking = "Merge conflict checking is in progress. Try again in few moments."
1299
+
pulls.is_empty = "This branch is equal with the target branch."
1295
1300
pulls.required_status_check_failed = Some required checks were not successful.
1296
1301
pulls.required_status_check_missing = Some required checks are missing.
1297
1302
pulls.required_status_check_administrator = As an administrator, you may still merge this pull request.
0 commit comments