Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.
This repository was 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

Open
@dsayling

Description

@dsayling

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions