This is an automated email from the ASF dual-hosted git repository.
kumfo pushed a commit to branch feat/reviewer-basic
in repository https://gitbox.apache.org/repos/asf/incubator-answer-plugins.git
The following commit(s) were added to refs/heads/feat/reviewer-basic by this
push:
new 3e8cac4 feat(review): delete log
3e8cac4 is described below
commit 3e8cac46c6f5d0a16c8b2d77d9a5dbd30647020f
Author: kumfo <[email protected]>
AuthorDate: Tue May 7 11:20:12 2024 +0800
feat(review): delete log
---
reviewer-basic/basic.go | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/reviewer-basic/basic.go b/reviewer-basic/basic.go
index 3076121..a1e0764 100644
--- a/reviewer-basic/basic.go
+++ b/reviewer-basic/basic.go
@@ -22,7 +22,6 @@ package basic
import (
"encoding/json"
"fmt"
- "github.com/segmentfault/pacman/log"
"strings"
"github.com/apache/incubator-answer-plugins/reviewer-basic/i18n"
@@ -88,8 +87,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)