You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case where there are multiple versions with the same semver core version, but different prerelease strings. The prerelease strings have some metadata in them for uniqueness purposes, but the most important differentiator is the branch name being included in it. For example, I may have tags like the following:
1.2.3-1-main
1.2.3-1-develop
1.2.3-2-main
If possible, can you add support for filtering prerelease strings in the version constraint for operations like max? As an example, if I wanted to get the latest tag generated on the main branch (prerelease version contains main), I would do something like
tags=$(git ...)
echo "$tags" | sver max "1.2.3, pre(*main*)"
Or something similar. Could be regex, globbing, etc
The text was updated successfully, but these errors were encountered:
I have a use case where there are multiple versions with the same semver core version, but different prerelease strings. The prerelease strings have some metadata in them for uniqueness purposes, but the most important differentiator is the branch name being included in it. For example, I may have tags like the following:
If possible, can you add support for filtering prerelease strings in the version constraint for operations like
max
? As an example, if I wanted to get the latest tag generated on themain
branch (prerelease version containsmain
), I would do something likeOr something similar. Could be regex, globbing, etc
The text was updated successfully, but these errors were encountered: