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 fc83213 commit e4085c1Copy full SHA for e4085c1
templates/repo/code/upstream_diverging_info.tmpl
@@ -1,7 +1,7 @@
1
{{if and .UpstreamDivergingInfo .UpstreamDivergingInfo.CommitsBehind}}
2
<div class="ui message flex-text-block">
3
<div class="tw-flex-1">
4
- {{$upstreamLink := printf "%s/src/branch/%s" .Repository.BaseRepo.Link .BranchName}}
+ {{$upstreamLink := printf "%s/src/branch/%s" .Repository.BaseRepo.Link (.BranchName|PathEscapeSegments)}}
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>
0 commit comments