In many development workflows,developers may create separate stable branches for release candidates that are different from the trunk or default branch. In such cases, the branches may diverge significantly if they are long lived.
For instance, if there is a release candidate branch called release-v3.4 where a bug was found, the developer may prepare a bug fix for this release branch, but now this bug fix should be made in the other branches as well.
This can be easily done using backporting. You can tell Aviator to backport a particular PR on another base branch. Aviator will create a new PR that cherry picks the changes from the original PR and applies on the specified base branch.
This action can be taken using the backport slash command or using the API.

Slash command

/aviator backport <target_branch>


curl -X POST \
-H "Authorization: Bearer <aviator_token>" \
-H "Content-Type: application/json" \
-d '{"target_branch": "release-v3.4", "source_pull": {"number": 1234, "repository": {"name": "repo_name", "org": "org_name"}}}' \