-
-
Notifications
You must be signed in to change notification settings - Fork 115
feat: add semver versioning #1005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
sudo-bmitch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the comments for changes needed before I'd want to include this.
|
i implemented the changes you proposed in 31190a0.
also, i changed the behavior of |
sudo-bmitch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this looks a lot better. Be sure to squash and sign commits.
internal/semver/semver.go
Outdated
| if v.prerelease < other.prerelease { | ||
| return -1 | ||
| } | ||
| return 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the string comparison would miss rc2 < rc15?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
improved on that 👍
Signed-off-by: Stefan Knott <stefan.knott@maloon.de>
Signed-off-by: Stefan Knott <stefan.knott@maloon.de> implement maintainer feedback from PR regclient#1005 Signed-off-by: Stefan Knott <stefan.knott@maloon.de> implement maintainer feedback from PR regclient#1005 Signed-off-by: Stefan Knott <stefan.knott@maloon.de>
Signed-off-by: Stefan Knott <stefan.knott@maloon.de> implement maintainer feedback from PR regclient#1005 Signed-off-by: Stefan Knott <stefan.knott@maloon.de> implement maintainer feedback from PR regclient#1005 Signed-off-by: Stefan Knott <stefan.knott@maloon.de> semver versioning 2 Signed-off-by: Stefan Knott <stefan.knott@maloon.de>
sudo-bmitch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the contribution!
Fixes issue
Describe the change
Semantic Version Filtering for Regsync
Regsync now supports semantic versioning (semver) for filtering Docker image tags, similar to Renovate's or python-pips version support. This allows you to sync only specific version ranges instead of relying solely on regex patterns.
Features
How to verify it
run the included version_filter_test.go
amend the configuration as described in
cmd/regsync/version_filter_test.goand give it a spinChangelog text
Please verify and check that the pull request fulfills the following requirements