From 79ead075fa404f26a4197883ce28b6eb36a3efed Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Mon, 17 Mar 2025 10:39:47 +0100 Subject: [PATCH] removing PRs opened by bots --- pull_requests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pull_requests.py b/pull_requests.py index 77278ab..0ccaf40 100644 --- a/pull_requests.py +++ b/pull_requests.py @@ -27,7 +27,10 @@ def get_good_projects(csv_file: str) -> pd.DataFrame: return df.loc[(df['good_repo_for_crab'] == True) & (df['n_tests'] > 0)] def is_pull_good(pull: PullRequest, verbose: bool = False): - return has_only_1_comment(pull.get_commits(), pull.get_review_comments(), verbose=verbose) + return ( + has_only_1_comment(pull.get_commits(), pull.get_review_comments(), verbose=verbose) + and pull.user.type != "Bot" + ) def get_good_prs(repo: Repository, stats_df: Optional[pd.DataFrame]) -> list[PullRequest]: good_prs = []