Skip to content

Commit 5e98d67

Browse files
authored
Commit Graph: Pull-Requests should not link to issues (#15734)
Use `/pulls` and simplify code.
1 parent eed88dc commit 5e98d67

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

templates/repo/graph/commits.tmpl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,8 @@
3333
{{range $commit.Refs}}
3434
{{$refGroup := .RefGroup}}
3535
{{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+
<a class="ui labelled icon button basic tiny" href="{{$.RepoLink}}/pulls/{{.ShortName|PathEscape}}">
4438
{{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}}
4539
</a>
4640
{{end}}

0 commit comments

Comments
 (0)