def mine(args): conf = fetch_config(args) app = BuildApp(conf) app.pool = 'thread' gh = get_connection(conf) pprint(mine_github_pulls(gh, app, conf))
def mine(args): conf = fetch_config(args) app = BuildApp(conf) app.pool_size = 4 gh = get_connection(conf) pprint(mine_github_pulls(gh, app, conf))
def actions(args): conf = fetch_config(args) app = BuildApp(conf) gh = get_connection(conf) results = [] for pull in mine_github_pulls(gh, app, conf): if pull["merge_safe"] is True: results.append(pull) pprint(results)
def actions(args): conf = fetch_config(args) app = BuildApp(conf) gh = get_connection(conf) results = [] for pull in mine_github_pulls(gh, app, conf): if pull['merge_safe'] is True: results.append(pull) pprint(results)
def stats(args): conf = fetch_config(args) app = BuildApp(conf) gh = get_connection(conf) users = set() result = {"merge_safe": 0, "total": 0} for pull in mine_github_pulls(gh, app, conf): result["total"] += 1 if pull["merge_safe"] is True: result["merge_safe"] += 1 users.add(pull["user"]) result["user_count"] = len(users) result["users"] = list(users) pprint(result)
def stats(args): conf = fetch_config(args) app = BuildApp(conf) gh = get_connection(conf) users = set() result = {'merge_safe': 0, 'total': 0} for pull in mine_github_pulls(gh, app, conf): result['total'] += 1 if pull['merge_safe'] is True: result['merge_safe'] += 1 users.add(pull['user']) result['user_count'] = len(users) result['users'] = list(users) pprint(result)
def stats(args): conf = fetch_config(args) app = BuildApp(conf) app.pool = 'thread' gh = get_connection(conf) users = set() result = {'merge_safe': 0, 'total': 0 } for pull in mine_github_pulls(gh, app, conf): result['total'] += 1 if pull['merge_safe'] is True: result['merge_safe'] += 1 users.add(pull['user']) result['user_count'] = len(users) result['users'] = list(users) pprint(result)