File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 33
33
{{range $commit.Refs}}
34
34
{{$refGroup := .RefGroup}}
35
35
{{if eq $refGroup "pull"}}
36
- {{if $.HidePRRefs}}
37
- {{if (containGeneric $.SelectedBranches .Name) }}
38
- <a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}">
39
- {{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
40
- </a>
41
- {{end}}
42
- {{else}}
43
- <a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/issues/{{.ShortName|PathEscape}}">
36
+ {{if or (not $.HidePRRefs) (containGeneric $.SelectedBranches .Name)}}
37
+ <!-- it's intended to use issues not pulls, if it's a pull you will get redirected -->
38
+ <a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/{{if $.Repository.UnitEnabled $.UnitTypePullRequests}}pulls{{else}}issues{{end}}/{{.ShortName|PathEscape}}">
44
39
{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
45
40
</a>
46
41
{{end}}
You can’t perform that action at this time.
0 commit comments