From 620bf983545db50fff30701181c002b02aae209f Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Wed, 5 May 2021 17:57:39 +0200 Subject: [PATCH] Commit Graph: Pull-Requests should not link to issues (#15734) Use `/pulls` and simplify code. --- templates/repo/graph/commits.tmpl | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/templates/repo/graph/commits.tmpl b/templates/repo/graph/commits.tmpl index 8f3260ba50e7c..d08539ebeb5cb 100644 --- a/templates/repo/graph/commits.tmpl +++ b/templates/repo/graph/commits.tmpl @@ -33,14 +33,8 @@ {{range $commit.Refs}} {{$refGroup := .RefGroup}} {{if eq $refGroup "pull"}} - {{if $.HidePRRefs}} - {{if (containGeneric $.SelectedBranches .Name) }} - - {{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}} - - {{end}} - {{else}} - + {{if or (not $.HidePRRefs) (containGeneric $.SelectedBranches .Name)}} + {{svg "octicon-git-pull-request" 16 "mr-2"}}#{{.ShortName}} {{end}}