Exemple #1
0
def merge_config():
    """merge all config in ~/.codecli.conf to current git repo's config.

    Will prompt for email and name if they do not exist in ~/.codecli.conf.

    """
    from codecli.providers import get_git_service_provider
    return get_git_service_provider().merge_config()
Exemple #2
0
def merge_config():
    """merge all config in ~/.codecli.conf to current git repo's config.

    Will prompt for email and name if they do not exist in ~/.codecli.conf.

    """
    from codecli.providers import get_git_service_provider
    return get_git_service_provider().merge_config()
Exemple #3
0
def get_code_username():
    user_name = get_config('user.name')
    if not user_name:
        from codecli.providers import get_git_service_provider, NoProviderFound
        try:
            user_name = get_git_service_provider().get_username()
        except NoProviderFound:
            return None
    return user_name
Exemple #4
0
def get_code_username():
    user_name = get_config('user.name')
    if not user_name:
        from codecli.providers import get_git_service_provider, NoProviderFound
        try:
            user_name = get_git_service_provider().get_username()
        except NoProviderFound:
            return None
    return user_name
Exemple #5
0
def repo_git_url(repo_name, login_user='', provider=None):
    from codecli.providers import get_git_service_provider
    return get_git_service_provider(force_provider=provider).\
        get_repo_git_url(repo_name, login_user)
Exemple #6
0
def send_pullreq(head_repo, head_ref, base_repo, base_ref):
    from codecli.providers import get_git_service_provider
    return get_git_service_provider().send_pullreq(
        head_repo, head_ref, base_repo, base_ref)
Exemple #7
0
def get_remote_repo_name(remote):
    from codecli.providers import get_git_service_provider
    return get_git_service_provider().get_remote_repo_name(remote)
Exemple #8
0
def repo_git_url(repo_name, login_user='', provider=None):
    from codecli.providers import get_git_service_provider
    return get_git_service_provider(force_provider=provider).\
        get_repo_git_url(repo_name, login_user)
Exemple #9
0
def send_pullreq(head_repo, head_ref, base_repo, base_ref):
    from codecli.providers import get_git_service_provider
    return get_git_service_provider().send_pullreq(
        head_repo, head_ref, base_repo, base_ref)
Exemple #10
0
def get_remote_repo_name(remote):
    from codecli.providers import get_git_service_provider
    return get_git_service_provider().get_remote_repo_name(remote)
Exemple #11
0
def get_pullinfo(repo, pr_id):
    from codecli.providers import get_git_service_provider

    return get_git_service_provider().get_pullinfo(repo, pr_id)