From be34e9d2f6244d618536e4d94a56d082bdf3585c Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Wed, 26 Mar 2025 14:04:14 +0100 Subject: [PATCH] put check for bot as first and apparently that sped up the process quite a bit, nice --- pull_requests.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pull_requests.py b/pull_requests.py index 79f537c..ade286b 100644 --- a/pull_requests.py +++ b/pull_requests.py @@ -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 )