Why is this PR required? What issue does it fix?:
There are cases where the tags can be on custom release branches
like v1.9.x-hotfix or v1.9.x-custom, apart from regular release
branch (v1.9.x).
What this PR does?:
This commit helps with translating the given tag to the corresponding
release branch with custom suffixes.
Using the new logic, some examples of tag to branch mappings are:
If the changes in this PR are manually verified, list down the scenarios covered and commands you used for testing with logs:
Manually verified the script changes using a test script as follows:
v1.10.0-RC1 is v1.10.x
v1.10.0 is v1.10.x
v1.10.1-RC1 is v1.10.x
v1.10.1 is v1.10.x
v1.10.0-custom-RC1 is v1.10.x-custom
v1.10.0-custom is v1.10.x-custom
v1.10.1-custom-RC1 is v1.10.x-custom
v1.10.1-custom is v1.10.x-custom
v1.10.1-hostfixid is v1.10.x-hostfixid
Any additional information for your reviewer?:
Mention if this PR is part of any design or a continuation of previous PRs
Checklist:
[ ] Fixes #
[ ] PR Title follows the convention of <type>(<scope>): <subject>
[ ] Has the change log section been updated?
[ ] Commit has unit tests
[ ] Commit has integration tests
[ ] (Optional) Are upgrade changes included in this PR? If not, mention the issue/PR to track:
Why is this PR required? What issue does it fix?: There are cases where the tags can be on custom release branches like v1.9.x-hotfix or v1.9.x-custom, apart from regular release branch (v1.9.x).
What this PR does?:
This commit helps with translating the given tag to the corresponding release branch with custom suffixes.
Using the new logic, some examples of tag to branch mappings are:
v1.9.0-RC1 => v1.9.x v1.9.0-hotfixid => v1.9.x-hotfixid v1.9.0 => v1.9.x v1.9.1 => v1.9.x v1.9.0-custom-RC1 => v1.9.x-custom v1.9.0-custom => v1.9.x-custom v1.9.1-custom => v1.9.x-custom
Does this PR require any upgrade changes?: NA
If the changes in this PR are manually verified, list down the scenarios covered and commands you used for testing with logs: Manually verified the script changes using a test script as follows:
Output:
Any additional information for your reviewer?: Mention if this PR is part of any design or a continuation of previous PRs
Checklist:
<type>(<scope>): <subject>
Signed-off-by: kmova kiran.mova@mayadata.io