Rename PrReviewTitle enum

This commit is contained in:
KennyDizi
2024-06-27 07:05:03 +07:00
parent d0315164be
commit 7348d4144b
4 changed files with 10 additions and 10 deletions

View File

@ -23,7 +23,7 @@ class ModelType(str, Enum):
REGULAR = "regular"
TURBO = "turbo"
class PrReviewTitles(str, Enum):
class PrReviewTitle(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"{PrReviewTitles.REGULAR} 🔍\n\n"
markdown_text += f"{PrReviewTitle.REGULAR} 🔍\n\n"
else:
markdown_text += f"{PrReviewTitles.INCREMENTAL} 🔍\n\n"
markdown_text += f"{PrReviewTitle.INCREMENTAL} 🔍\n\n"
markdown_text += f"⏮️ Review for commits since previous PR-Agent review {incremental_review}.\n\n"
if gfm_supported:
markdown_text += "<table>\n"