This is an automated email from the ASF dual-hosted git repository. kumfo pushed a commit to branch fix/reviwer-basic in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git
commit d4d088a5c4021cf5e57e486f13c35fd13eff0123 Author: kumfo <[email protected]> AuthorDate: Tue May 7 11:20:12 2024 +0800 feat(review): delete log --- reviewer-basic/basic.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reviewer-basic/basic.go b/reviewer-basic/basic.go index c91cc59..6726f29 100644 --- a/reviewer-basic/basic.go +++ b/reviewer-basic/basic.go @@ -89,8 +89,7 @@ func (r *Reviewer) Review(content *plugin.ReviewContent) (result *plugin.ReviewR keywords := strings.Split(r.Config.PostReviewKeywords, "\n") disallowedKeywords := strings.Split(r.Config.PostDisallowedKeywords, "\n") - log.Error(keywords) - log.Error(disallowedKeywords) + // Check if the post contains the keywords that need review for _, keyword := range keywords { keyword = strings.ToLower(keyword)
