From 2ee93ea17869de8fe24c6965fa3416ff30d55c5a Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 24 Apr 2024 03:24:10 +0800 Subject: [PATCH] Avoid doubled border for the PR info segment (#30663) --- templates/repo/issue/view_content/pull.tmpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/repo/issue/view_content/pull.tmpl b/templates/repo/issue/view_content/pull.tmpl index 117cd7b7a3..77378ef1bd 100644 --- a/templates/repo/issue/view_content/pull.tmpl +++ b/templates/repo/issue/view_content/pull.tmpl @@ -20,6 +20,7 @@ {{- else if .Issue.PullRequest.CanAutoMerge}}green {{- else}}red{{end}}">{{svg "octicon-git-merge" 40}}
+ {{if .LatestCommitStatus}}
{{template "repo/pulls/status" (dict "CommitStatus" .LatestCommitStatus @@ -29,8 +30,9 @@ "is_context_required" .is_context_required )}}
+ {{end}} {{$showGeneralMergeForm := false}} -
+
{{if .Issue.PullRequest.HasMerged}} {{if .IsPullBranchDeletable}}