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 716a7df  feat(review): Improve basic review plugin
716a7df is described below

commit 716a7df315df8143d1423f633fb1350b68df0867
Author: kumfo <[email protected]>
AuthorDate: Wed Mar 27 17:54:08 2024 +0800

    feat(review): Improve basic review plugin
---
 reviewer-basic/basic.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/reviewer-basic/basic.go b/reviewer-basic/basic.go
index befb792..c4d2477 100644
--- a/reviewer-basic/basic.go
+++ b/reviewer-basic/basic.go
@@ -64,12 +64,12 @@ func (r *Reviewer) Review(content *plugin.ReviewContent) 
(result *plugin.ReviewR
                return result
        }
        // If the author is admin, no need to review
-       /*if content.Author.Role > 1 {
+       if content.Author.Role > 1 {
                return result
        }
        if 
content.Author.ApprovedQuestionAmount+content.Author.ApprovedAnswerAmount > 1 {
                return result
-       }*/
+       }
 
        keywords := strings.Split(r.Config.PostReviewKeywords, "\n")
        disallowedKeywords := strings.Split(r.Config.PostDisallowedKeywords, 
"\n")

Reply via email to