Why does Autobump accept "draft" versions on GitHub? #6385
-
Hi, Autobump is a great feature which makes a project's maintainer's life easier. Is there some note on the precise way Autobump detects new releases of projects, depending on where they are hosted? My project (tsduck) is hosted at GitHub and benefits from Autobump. Lately, I started a new automated release workflow. Instead of manually creating the release, everything is automated using GitHub Actions, all builds, full tests, release creation, binaries uploads. Because, my trust in automation is not as high as in humans, the release is created as "draft". When a GitHub release is marked as "draft", it does not appear as the "latest" official release. Thus, I keep the possibility of reviewing the whole thing and decide to manually mark the release as official and latest, or drop it entirely if anything does not look like perfect. This workflow ran for the first time a week ago and I noticed that the project was immediately autobumped into HomeBrew, while it was created as a "draft" release. By design, "draft" means not final, not approved, not yet at least. Do you think that Autodump should select them and publish them in HomeBrew? Because updated formulae are installed by everyone on Earth, wouldn't it be safer to only select official releases? Note: the status of a release, draft vs. latest, is available through the GitHub API. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Because we don't query the GitHub API unless we really need to (because of rate limits). To make the formula check the GitHub API, it needs to specify the |
Beta Was this translation helpful? Give feedback.
Because we don't query the GitHub API unless we really need to (because of rate limits).
To make the formula check the GitHub API, it needs to specify the
:github_latest
strategy in alivecheck
block.