docs: Add example and fix typo for readme of regex versioning module #33333
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.
Changes
This adds an example for
linuxserver/tautulli
docker image to show that for the fourth version part (thels
number), thebuild
capture group should be used. This differs from the current example oflinuxserver/openssh-server
which thels
number is the fifth version part so versioning should be used. Closes #33270.Also fixes typo in the doc (should be
matchPackageNames
instead ofmatchPackageNamees
)Context
I have opened an discussion #33270 while attempting to adapting the
linuxserver/openssh-server
example for linuxserver/librespeed. Afterwards the maintainer replied that thebuild
instead ofversioning
capture group should be used for the fourth versioning part (thels
number).I think most linuxserver.io image tags follow semver plus build number (
x.y.z-lsnn
).ghcr.io/linuxserver/openssh-server
is a particularly difficult case with the five capture groups. I think it is a good idea to add an additional example to show how to handle linuxserver.io image tags in the format ofx.y.z-lsnn
. I believe that this will let beginners to get started to use renovate with most linuxserver.io images. This will also clearly demonstrate that when only four version parts are needed, build instead of revision should be used for the fourth capture group.I choose
tautulli
as an example as this is the fourth most pulled linuxserver image according to their stats. The version tag prefixed withv
also further demonstrates a difference withopenssh-server
.Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: