Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)