When a PR with the label backport-to-production is backported, the backport PR will target the branch "release/production", and have the label backported-to-production.
Example: Template variables using {targetBranch} and {sourceBranch}
It is also possible to have dynamic values using the template variables {targetBranch} and {sourceBranch}.
Closes https://github.com/sqren/backport/issues/391
Add support for dynamic values in
targetPRLabels
where the matched regex groups frombranchLabelMapping
can be used in the label intargetPRLabels
.Example:
branchLabelMapping
regex group matching (using$1
,$2
etc)When a PR with the label
backport-to-production
is backported, the backport PR will target the branch "release/production", and have the labelbackported-to-production
.Example: Template variables using
{targetBranch}
and{sourceBranch}
It is also possible to have dynamic values using the template variables
{targetBranch}
and{sourceBranch}
.In this case, a PR backported to "production" will get the label "backported-to-production-from-main". No labels needed in this case.