Example #1
0
def mine(args):
    conf = fetch_config(args)
    app = BuildApp(conf)
    app.pool = 'thread'
    gh = get_connection(conf)

    pprint(mine_github_pulls(gh, app, conf))
Example #2
0
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))
Example #3
0
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)
Example #4
0
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)
Example #5
0
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)
Example #6
0
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)
Example #7
0
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)