marwanhawari / stew

🥘 An independent package manager for compiled binaries.
MIT License
193 stars 14 forks source link

Allow ignoring Pre-Releases #44

Open amogus07 opened 4 months ago

amogus07 commented 4 months ago

Right now, I use stew to keep the syncthing binary up-to-date. Today, stew upgrade --all updated it to v1.27.10-rc.1, which is a labeled as "Pre-Release". Is there a way to have stew only pull updates labeled as "Latest" and ignore Pre-Releases?

marwanhawari commented 3 months ago

I agree, the only time I would want to see prereleases are for the stew browse command. Everything else should just pull the latest non-prerelease release.

Looks like there is a boolean prerelease property returned in the HTTP response for the GitHub API GET /repos/{owner}/{repo}/releases endpoint. Would need to update this type and then update the application code to filter out prerelease releases (except for stew browse).

Do you want to try and take this on?

amogus07 commented 3 months ago

I'm sorry, I would love to help out, but I don't know Go, neither am I familiar with this project's source code. As of now, someone else will have to do it.

HugoDF commented 1 month ago

@marwanhawari if this is still of interest I can work on a Pull Request

marwanhawari commented 1 month ago

Yeah I'd be happy to review a PR!

HugoDF commented 1 month ago

@marwanhawari PR is ready for review https://github.com/marwanhawari/stew/pull/49

I wonder if we should also be excluding draft releases? (unless something is doing that for us already)