When using non-interactive mode (e.g. using backport-github-action) getTargetBranches() failed to find target branch when there are >1 commit in the PR to backport:
"error": {
"name": "BackportError",
"errorContext": {
"code": "no-branches-exception"
}
},
"errorMessage": "There are no branches to backport to. Aborting."
Now it picks up target branch from first's commit suggestedTargetBranches. In backport-github-action every commit to backport has the same suggestedTargetBranches based on PR's labels.
When using non-interactive mode (e.g. using backport-github-action)
getTargetBranches()
failed to find target branch when there are >1 commit in the PR to backport:Now it picks up target branch from first's commit
suggestedTargetBranches
. In backport-github-action every commit to backport has the samesuggestedTargetBranches
based on PR's labels.Solves https://github.com/sorenlouv/backport-github-action/issues/103
FYI @sorenlouv