excluding repos that have no comments

This commit is contained in:
Karma Riuk
2025-03-31 21:25:08 +02:00
parent 352758a600
commit d8ab48dc82

View File

@ -48,7 +48,7 @@ def get_good_projects(csv_file: str) -> pd.DataFrame:
def is_pull_good(pull: PullRequest, verbose: bool = False) -> bool: def is_pull_good(pull: PullRequest, verbose: bool = False) -> bool:
comments = pull.get_review_comments() comments = pull.get_review_comments()
if pull.user.type == "Bot" or comments.totalCount > 2: if pull.user.type == "Bot" or comments.totalCount > 2 or comments.totalCount == 0:
return False return False
if comments.totalCount == 2: if comments.totalCount == 2: