Merge remote-tracking branch 'origin/main' into tr/review_redesign

# Conflicts:
#	pr_agent/tools/pr_reviewer.py
This commit is contained in:
mrT23
2024-06-29 21:55:49 +03:00
4 changed files with 15 additions and 9 deletions

View File

@ -23,6 +23,12 @@ class ModelType(str, Enum):
REGULAR = "regular"
TURBO = "turbo"
class PRReviewHeader(str, Enum):
REGULAR = "## PR Reviewer Guide"
INCREMENTAL = "## Incremental PR Reviewer Guide"
def get_setting(key: str) -> Any:
try:
key = key.upper()
@ -89,9 +95,9 @@ def convert_to_markdown(output_data: dict, gfm_supported: bool = True, increment
}
markdown_text = ""
if not incremental_review:
markdown_text += f"## PR Reviewer Guide 🔍\n\n"
markdown_text += f"{PRReviewHeader.REGULAR.value} 🔍\n\n"
else:
markdown_text += f"## Incremental PR Reviewer Guide 🔍\n\n"
markdown_text += f"{PRReviewHeader.INCREMENTAL.value} 🔍\n\n"
markdown_text += f"⏮️ Review for commits since previous PR-Agent review {incremental_review}.\n\n"
if gfm_supported:
markdown_text += "<table>\n"