Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the latest release including pre-releases #2255

Merged
merged 1 commit into from
Nov 22, 2023
Merged

Conversation

nforro
Copy link
Member

@nforro nforro commented Nov 21, 2023

For GitHub projects, GitProject.get_latest_release() considers only stable releases. If sync_release failed for a pre-release, the retrieved git ref is incorrect. Fix that.

Fixes packit/specfile#325.

Copy link
Contributor

Copy link
Member

@lbarcziova lbarcziova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we rather use the first release from get_releases (that one should list all the releases including the pre-releases)?

@nforro nforro changed the title Extract tag name from issue title if possible Get the latest release including pre-releases Nov 21, 2023
Copy link
Contributor

@nforro
Copy link
Member Author

nforro commented Nov 22, 2023

recheck

Copy link
Contributor

Copy link
Member

@lbarcziova lbarcziova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once the tests are green, thanks!

For GitHub projects, GitProject.get_latest_release() considers only
stable releases. If sync_release failed for a pre-release,
the retrieved git ref is incorrect. Fix that.

Signed-off-by: Nikola Forró <[email protected]>
Copy link
Contributor

@nforro nforro added the mergeit When set, zuul wil gate and merge the PR. label Nov 22, 2023
@nforro nforro merged commit ff6c0f5 into packit:main Nov 22, 2023
@nforro nforro deleted the prerelease branch November 22, 2023 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit When set, zuul wil gate and merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[packit] Propose downstream failed for release 0.25.1rc1
2 participants