aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2024-08-10 09:09:34 +0800
committerGitHub <noreply@github.com>2024-08-10 01:09:34 +0000
commit9633f336c87947dc7d2a5e76077a10699ba5e50d (patch)
tree190890b651f82e757d9746dde8c6528c9c79c6ab /templates/repo
parentdf27846628fc0a8a20f59fc60ca4e0107585ea05 (diff)
downloadgitea-9633f336c87947dc7d2a5e76077a10699ba5e50d.tar.gz
gitea-9633f336c87947dc7d2a5e76077a10699ba5e50d.zip
Add warning message in merge instructions when `AutodetectManualMerge` was not enabled (#31805)
not enabled quick-f-i-x https://github.com/go-gitea/gitea/issues/31433 ? , maybe need more disscusion about better solutions. example view: ![image](https://github.com/user-attachments/assets/2af7e1e8-42b9-4473-89c7-12d4a9205d3f) adtion notes about how to enable `AutodetectManualMerge` ![image](https://github.com/user-attachments/assets/28f84317-367a-40d8-b50d-a19ef7c664d4) Signed-off-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/issue/view_content/pull_merge_instruction.tmpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/pull_merge_instruction.tmpl b/templates/repo/issue/view_content/pull_merge_instruction.tmpl
index bb59b49719..9a3e2cb7d7 100644
--- a/templates/repo/issue/view_content/pull_merge_instruction.tmpl
+++ b/templates/repo/issue/view_content/pull_merge_instruction.tmpl
@@ -15,7 +15,13 @@
<div>git checkout {{$localBranch}}</div>
</div>
{{if .ShowMergeInstructions}}
- <div><h3>{{ctx.Locale.Tr "repo.pulls.cmd_instruction_merge_title"}}</h3>{{ctx.Locale.Tr "repo.pulls.cmd_instruction_merge_desc"}}</div>
+ <div>
+ <h3>{{ctx.Locale.Tr "repo.pulls.cmd_instruction_merge_title"}}</h3>
+ {{ctx.Locale.Tr "repo.pulls.cmd_instruction_merge_desc"}}
+ {{if not .AutodetectManualMerge}}
+ <div>{{ctx.Locale.Tr "repo.pulls.cmd_instruction_merge_warning"}}</div>
+ {{end}}
+ </div>
<div class="ui secondary segment">
<div data-pull-merge-style="merge">
<div>git checkout {{.PullRequest.BaseBranch}}</div>