{{if .Issue.PullRequest.HasMerged}}
@@ -320,6 +321,7 @@
'textAutoMergeCancelSchedule': {{$.locale.Tr "repo.pulls.auto_merge_cancel_schedule"}},
'textClearMergeMessage': {{$.locale.Tr "repo.pulls.clear_merge_message"}},
'textClearMergeMessageHint': {{$.locale.Tr "repo.pulls.clear_merge_message_hint"}},
+ 'textMergeCommitId': {{$.locale.Tr "repo.pulls.merge_commit_id"}},
'canMergeNow': {{$canMergeNow}},
'allOverridableChecksOk': {{not $notAllOverridableChecksOk}},
@@ -379,6 +381,7 @@
window.config.pageData.pullRequestMergeForm = mergeForm;
+ {{$showGeneralMergeForm = true}}
{{else}}
{{/* no merge style was set in repo setting: not or ($prUnit.PullRequestsConfig.AllowMerge ...) */}}
@@ -452,30 +455,21 @@
{{$.locale.Tr "repo.pulls.cannot_auto_merge_helper"}}
{{end}}
- {{end}}
+ {{end}}{{/* end if: pull request status */}}
- {{if $.StillCanManualMerge}}
+ {{if and $.StillCanManualMerge (not $showGeneralMergeForm)}}
-
+
-
-
{{end}}
{{if and .ShowMergeInstructions .Issue.PullRequest.HeadRepo}}
diff --git a/web_src/js/components/PullRequestMergeForm.vue b/web_src/js/components/PullRequestMergeForm.vue
index 2e10ce2531..bc960c1e70 100644
--- a/web_src/js/components/PullRequestMergeForm.vue
+++ b/web_src/js/components/PullRequestMergeForm.vue
@@ -36,6 +36,10 @@
+
+
+
+