def gh_push_url(push):
    """Convert push to compare GitHub URL

    :param push: Push to be converted
    :type push: ``repocribro.models.Push``
    :return: URL to GitHub compare page
    :rtype: str
    """
    before = push.before[:10]
    after = push.after[:10]
    return 'https://github.com/{0}/compare/{1}...{2}'.format(
        push.repository.full_name, before, after
    )