put check for bot as first and apparently that

sped up the process quite a bit, nice
This commit is contained in:
Karma Riuk
2025-03-26 14:04:14 +01:00
parent 99d8abb7e7
commit be34e9d2f6

View File

@ -29,9 +29,8 @@ def get_good_projects(csv_file: str) -> pd.DataFrame:
def is_pull_good(pull: PullRequest, verbose: bool = False):
return (
has_only_1_comment(pull.get_commits(), pull.get_review_comments(), verbose=verbose)
and pull.user.type != "Bot"
return pull.user.type != "Bot" and has_only_1_comment(
pull.get_commits(), pull.get_review_comments(), verbose=verbose
)