def repo_visibility(repo):
    """Convert repo to its visibility attribute as string

    :param repo: Repository to show its visibility as string
    :type repo: ``repocribro.models.Repository``
    :return: Text representation of repo visibility
    :rtype: str
    """
    if repo.is_public:
        return 'Public'
    if repo.is_hidden:
        return 'Hidden'
    if repo.is_private:
        return 'Private'