mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-05 13:38:12 +02:00
put check for bot as first and apparently that
sped up the process quite a bit, nice
This commit is contained in:
@ -29,9 +29,8 @@ def get_good_projects(csv_file: str) -> pd.DataFrame:
|
|||||||
|
|
||||||
|
|
||||||
def is_pull_good(pull: PullRequest, verbose: bool = False):
|
def is_pull_good(pull: PullRequest, verbose: bool = False):
|
||||||
return (
|
return pull.user.type != "Bot" and has_only_1_comment(
|
||||||
has_only_1_comment(pull.get_commits(), pull.get_review_comments(), verbose=verbose)
|
pull.get_commits(), pull.get_review_comments(), verbose=verbose
|
||||||
and pull.user.type != "Bot"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user