Add an option to reuse values captured from ref to search a tag #338
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.
I have this use case where I have branches containing a part of the version, but I need to resolve the rest of the version from the previous tags.
For example,
release/2.3
will set the base version to2.3.0
but on this branch, the release is still in preparation, so I need to check for specific tags that match the version from the branch (2.3.0-rc.1
and other increments starting with2.3
) in order to not mix any other tag versions with the release to go.I implemented a way to put placeholders in the
describeTagPattern
to find the right tags, like:The idea is that
{{
is normally not valid for regex if not escaped. If the key found is not part of the map, the placeholder is left untouched.