From 51001d9ffed27b871acb1b1c27f4090b3dbb026d Mon Sep 17 00:00:00 2001 From: Giteabot Date: Wed, 4 Oct 2023 20:56:02 +0800 Subject: [PATCH] Fix pr template (#27436) (#27440) Backport #27436 by @lunny Fix #27431 Co-authored-by: Lunny Xiao --- templates/repo/issue/view_content/comments.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 714701939..d3fe424b8 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -496,7 +496,7 @@ {{end}} - {{$diff := (CommentMustAsDiff (index $comms 0))}} + {{$diff := (CommentMustAsDiff ctx (index $comms 0))}} {{if $diff}} {{$file := (index $diff.Files 0)}}