(self)
return self.information.default_branch
Return the ref.
Return the ref.
Return the ref .
def ref(self):
        """Return the ref."""
        if self.status.selected_tag is not None:
            if self.status.selected_tag == self.information.default_branch:
                return self.information.default_branch
            return "tags/{}".format(self.status.selected_tag)

        if self.releases.releases:
            return "tags/{}".format(self.versions.available)

        return self.information.default_branch
def ref ( self ) : if self . status . selected_tag is not None : if self . status . selected_tag == self . information . default_branch : return self . information . default_branch return "tags/{}" . format ( self . status . selected_tag ) if self . releases . releases : return "tags/{}" . format ( self . versions . available ) return self . information . default_branch