2023-06-29 12:24:22 +00:00
|
|
|
<div class="divider"></div>
|
2023-09-25 00:21:38 +00:00
|
|
|
<div class="instruct-toggle"> {{ctx.Locale.Tr "repo.pulls.merge_instruction_hint" | Safe}} </div>
|
2023-02-19 04:06:14 +00:00
|
|
|
<div class="instruct-content gt-mt-3 gt-hidden">
|
2023-09-25 00:21:38 +00:00
|
|
|
<div><h3 class="gt-dib">{{ctx.Locale.Tr "step1"}}</h3> {{ctx.Locale.Tr "repo.pulls.merge_instruction_step1_desc"}}</div>
|
2022-06-11 14:44:20 +00:00
|
|
|
<div class="ui secondary segment">
|
2023-09-25 00:21:38 +00:00
|
|
|
{{if eq .Flow 0}}
|
|
|
|
<div>git checkout -b {{if ne .HeadRepo.ID .BaseRepo.ID}}{{.HeadRepo.OwnerName}}-{{end}}{{.HeadBranch}} {{.BaseBranch}}</div>
|
|
|
|
<div>git pull {{if ne .HeadRepo.ID .BaseRepo.ID}}<gitea-origin-url data-url="{{.HeadRepo.Link}}"></gitea-origin-url>{{else}}origin{{end}} {{.HeadBranch}}</div>
|
2022-06-11 14:44:20 +00:00
|
|
|
{{else}}
|
2023-09-25 00:21:38 +00:00
|
|
|
<div>git fetch origin {{.GetGitRefName}}:{{.HeadBranch}}</div>
|
2022-06-11 14:44:20 +00:00
|
|
|
{{end}}
|
|
|
|
</div>
|
2023-09-25 00:21:38 +00:00
|
|
|
<div><h3 class="gt-dib">{{ctx.Locale.Tr "step2"}}</h3> {{ctx.Locale.Tr "repo.pulls.merge_instruction_step2_desc"}}</div>
|
2022-06-11 14:44:20 +00:00
|
|
|
<div class="ui secondary segment">
|
2023-09-25 00:21:38 +00:00
|
|
|
<div>git checkout {{.BaseBranch}}</div>
|
|
|
|
<div>git merge --no-ff {{if ne .HeadRepo.ID .BaseRepo.ID}}{{.HeadRepo.OwnerName}}-{{end}}{{.HeadBranch}}</div>
|
|
|
|
<div>git push origin {{.BaseBranch}}</div>
|
2022-06-11 14:44:20 +00:00
|
|
|
</div>
|
|
|
|
</div>
|