Use ReviewHeaderTitle in lieu of PrReviewTitle

This commit is contained in:
KennyDizi
2024-06-27 07:11:57 +07:00
parent ba963149ac
commit 692904bb71
4 changed files with 10 additions and 10 deletions

View File

@ -23,7 +23,7 @@ class ModelType(str, Enum):
REGULAR = "regular"
TURBO = "turbo"
class PrReviewTitle(str, Enum):
class ReviewHeaderTitle(str, Enum):
REGULAR = "## PR Reviewer Guide"
INCREMENTAL = "## Incremental PR Reviewer Guide"
@ -90,9 +90,9 @@ def convert_to_markdown(output_data: dict, gfm_supported: bool = True, increment
}
markdown_text = ""
if not incremental_review:
markdown_text += f"{PrReviewTitle.REGULAR.value} 🔍\n\n"
markdown_text += f"{ReviewHeaderTitle.REGULAR.value} 🔍\n\n"
else:
markdown_text += f"{PrReviewTitle.INCREMENTAL.value} 🔍\n\n"
markdown_text += f"{ReviewHeaderTitle.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"