Skip to content

Cannot change the default base branch main (GraphQL: Cannot change the base branch because the pull request is part of a stack. (updatePullRequest)) #455

Description

@LeonLH928

This feature could be better for code management if it can be used for projects with multiple environments since I cannot change the default base branch main to other branches (like staging, or to break a branch into many features and merge into it for better testing)

I have tried the following

# In your local repo
gh pr edit --base <your-parent-branch>

And I got

GraphQL: Cannot change the base branch because the pull request is part of a stack. (updatePullRequest)

I would love an update or explanation for this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions