Merge pull request #19766 from michaelstingl/docs-livecheck-prerelease

docs: Add section on handling temporary pre-release versions in livecheck
This commit is contained in:
Sam Ford 2025-04-17 02:47:24 +00:00 committed by GitHub
commit 01429a2efc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -259,6 +259,8 @@ livecheck do
end end
``` ```
The strategy's default logic skips releases marked as draft or pre-release but this can be modified by using a `strategy` block. Removing the `release["prerelease"]` condition from the previous example would allow us to work with pre-release releases, though the regex may also need to be adapted to handle unstable version formats.
You can find more information on the response JSON from this API endpoint in the related [GitHub REST API documentation](https://docs.github.com/en/rest/releases/releases?apiVersion=latest#list-releases). You can find more information on the response JSON from this API endpoint in the related [GitHub REST API documentation](https://docs.github.com/en/rest/releases/releases?apiVersion=latest#list-releases).
#### `Crate` `strategy` block #### `Crate` `strategy` block