This repository has been archived by the owner on Mar 12, 2024. It is now read-only.
Command "merge-with-parent" should merge with destination branch on PR when available #27
Labels
enhancement
New feature or request
https://circleci.com/developer/orbs/orb/circleci/build-tools#commands-merge-with-parent
Currently, the command only supports merging with the parent branch (based on the history of the current branch) or a branch specified by the existing parameter. However, this is not ideal when a PR is trying to merge to an indirect parent branch.
This could be implemented by adding an additional parameter, like
apply_pr_dest
that will attempt to find the destination branch in the PR via the GitHub API and then do the appropriate pull/merge. In the event the flag is set and no destination branch is available (e.g. there's not a PR implying the destination branch) we could use the existing mechanism to find the parent branch.The text was updated successfully, but these errors were encountered: