Add configuration to request a score for the PR

This can help teams compare the review of the PR agent with that of a human reviewer, and fine-tune a score threshold for automatic approval where they decide the agent's review is satisfactory.
This commit is contained in:
zmeir
2023-07-18 16:27:42 +03:00
parent 3efe08d619
commit 0396e10706
5 changed files with 10 additions and 0 deletions

View File

@ -35,6 +35,7 @@ class PRReviewer:
"description": self.git_provider.get_pr_description(),
"language": self.main_language,
"diff": "", # empty diff for initial calculation
"require_score": settings.pr_reviewer.require_score_review,
"require_tests": settings.pr_reviewer.require_tests_review,
"require_security": settings.pr_reviewer.require_security_review,
"require_focused": settings.pr_reviewer.require_focused_review,