Skip to content

Commit 5f2417b

Browse files
committed
only skip render PULL_PUSH_EVENT when PR is closed
1 parent 210a6ce commit 5f2417b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/repo/issue/view_content/comments.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@
117117
{{end}}
118118
</span>
119119
</div>
120-
{{if and .Issue.IsClosed (eq $.LatestCloseCommentID .ID)}}
121-
{{break}}
122-
{{end}}
123120
{{else if eq .Type 28}}
124121
<div class="timeline-item event" id="{{.HashTag}}">
125122
<span class="badge gt-bg-purple gt-text-white">{{svg "octicon-git-merge"}}</span>
@@ -700,6 +697,9 @@
700697
</span>
701698
</div>
702699
{{else if and (eq .Type 29) (or (gt .CommitsNum 0) .IsForcePush)}}
700+
{{if and .Issue.IsClosed (gt .ID $.LatestCloseCommentID)}}
701+
{{continue}}
702+
{{end}}
703703
<div class="timeline-item event" id="{{.HashTag}}">
704704
<span class="badge">{{svg "octicon-repo-push"}}</span>
705705
<span class="text grey muted-links">

0 commit comments

Comments
 (0)