From 5e98d670d36f6228702af6db20afaff5761931bb 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 8f3260ba5..d08539ebe 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}}