We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 660120f commit fc83213Copy full SHA for fc83213
templates/repo/code/upstream_diverging_info.tmpl
@@ -5,8 +5,10 @@
5
{{$upstreamHtml := HTMLFormat `<a href="%s">%s:%s</a>` $upstreamLink .Repository.BaseRepo.FullName .BranchName}}
6
{{ctx.Locale.TrN .UpstreamDivergingInfo.CommitsBehind "repo.pulls.upstream_diverging_prompt_behind_1" "repo.pulls.upstream_diverging_prompt_behind_n" .UpstreamDivergingInfo.CommitsBehind $upstreamHtml}}
7
</div>
8
+ {{if .CanWriteCode}}
9
<button class="ui compact green button tw-m-0 link-action" data-url="{{.Repository.Link}}/branches/merge-upstream?branch={{.BranchName}}">
10
{{ctx.Locale.Tr "repo.pulls.upstream_diverging_merge"}}
11
</button>
12
+ {{end}}
13
14
{{end}}
0 commit comments