Open amogus07 opened 4 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?
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.
@marwanhawari if this is still of interest I can work on a Pull Request
Yeah I'd be happy to review a PR!
@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)
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?