Update PR review prompts and terminology for clarity and consistency

This commit is contained in:
mrT23
2024-06-09 14:29:32 +03:00
parent f4c9d23084
commit 9c8bc6c86a
6 changed files with 21 additions and 15 deletions

View File

@ -92,9 +92,9 @@ class GithubProvider(GitProvider):
self.comments = list(self.pr.get_issue_comments())
prefixes = []
if full:
prefixes.append("## PR Review")
prefixes.append("## PR Reviewer Guide")
if incremental:
prefixes.append("## Incremental PR Review")
prefixes.append("## Incremental PR Reviewer Guide")
for index in range(len(self.comments) - 1, -1, -1):
if any(self.comments[index].body.startswith(prefix) for prefix in prefixes):
return self.comments[index]