def _get_repo_type(remote_url):
    """
    Returns repo type by parsing the remote_url for github.com and visualstudio.com
    """
    lower_case_url = remote_url.lower()
    if 'github.com' in lower_case_url:
        return 'github'
    elif 'visualstudio.com' in lower_case_url:
        return 'vsts'

    return None