def get_user_author(auth_info):
    """Return commit author info from a dict. Returns username and author string.

    auth_info should have 3 strings:
        `login` (a github log in)
        `name`
        `email`
    username will be in the `login` value. It is used for WIP branch naming.
    the author string will be the name and email joined. This is used in commit messages.
    """
    return auth_info['login'], ("%s <%s>" % (auth_info['name'], auth_info['email']))