(self)
Get repository releases.
Get repository releases.
Get repository releases .
async def get_releases(self):
        """Get repository releases."""
        if self.status.show_beta:
            temp = await self.repository_object.get_releases(prerelease=True)
        else:
            temp = await self.repository_object.get_releases(prerelease=False)

        if not temp:
            return

        self.releases.releases = True

        self.releases.published_tags = []

        for release in temp:
            self.releases.published_tags.append(release.tag_name)

        self.releases.last_release_object = temp[0]
        if self.status.selected_tag is not None:
            if self.status.selected_tag != self.information.default_branch:
                for release in temp:
                    if release.tag_name == self.status.selected_tag:
                        self.releases.last_release_object = release
                        break
        self.versions.available = temp[0].tag_name
async def get_releases ( self ) : if self . status . show_beta : temp = await self . repository_object . get_releases ( prerelease = True ) else : temp = await self . repository_object . get_releases ( prerelease = False ) if not temp : return self . releases . releases = True self . releases . published_tags = [ ] for release in temp : self . releases . published_tags . append ( release . tag_name ) self . releases . last_release_object = temp [ 0 ] if self . status . selected_tag is not None : if self . status . selected_tag != self . information . default_branch : for release in temp : if release . tag_name == self . status . selected_tag : self . releases . last_release_object = release break self . versions . available = temp [ 0 ] . tag_name