Improve watch_repo with newer_only option#1775
Open
LucienLassalle wants to merge 1 commit into
Open
Conversation
When you have a fixed version, you have no way of detecting the appearance of a new version. This option aims to notify you when a new image appears and is more recent, thus limiting notifications. When watch_repo is enabled, watch_newer_only restricts notifications to tags whose semantic version is strictly greater than the current image tag. Non-semver tags (latest, edge, date-based) are silently ignored. include_prereleases controls whether pre-release tags (-rc.1, -alpha, -beta) that are newer than the current version are included. Both options are available as labels on all providers (diun.watch_newer_only, diun.include_prereleases), as Defaults config fields (watchNewerOnly, includePrereleases), and in the file provider YAML configuration (watch_newer_only, include_prereleases). Signed-off-by: Lucas RAVAGNIER <ravagnierlucas@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When you have a fixed version, you have no way of detecting the appearance of a new version.
This option aims to notify you when a new image appears and is more recent, thus limiting notifications.
When watch_repo is enabled, watch_newer_only restricts notifications to tags whose semantic version is strictly greater than the current image tag. Non-semver tags (latest, edge, date-based) are silently ignored. include_prereleases controls whether pre-release tags (-rc.1, -alpha, -beta) that are newer than the current version are included.
Both options are available as labels on all providers (diun.watch_newer_only, diun.include_prereleases), as Defaults config fields (watchNewerOnly, includePrereleases), and in the file provider YAML configuration (watch_newer_only, include_prereleases).
Note: I received help from Claude Sonnet 4.6 for the pull request. And this is my first pull request on this repository, so any feedback is welcome :)