From 9d2809f9b668fd395f0a582eb8bcb79d13885cf9 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 7 Sep 2022 17:37:57 +0800 Subject: [PATCH] Add MD5 back to template helper functions to avoid breaking --- modules/templates/helper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/templates/helper.go b/modules/templates/helper.go index e78dcb61cfa04..2ea7bdacc6955 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -154,6 +154,7 @@ func NewFuncMap() []template.FuncMap { "DiffTypeToStr": DiffTypeToStr, "DiffLineTypeToStr": DiffLineTypeToStr, "ShortSha": base.ShortSha, + "MD5": base.EncodeMD5, "ActionContent2Commits": ActionContent2Commits, "PathEscape": url.PathEscape, "PathEscapeSegments": util.PathEscapeSegments,