github / github/gh-stack

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

Open
#455 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1.5k
Forks
70
Avg merge
1d 8h
Merged PRs (30d)
7

Description

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
```
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

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with `gh pr edit --base ` and inspect the reported `updatePullRequest` GraphQL error. Determine whether stacked pull requests can support changing the base branch, then document the limitation or define the behavior needed for staging and multi-feature workflows.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, go
Domain
api, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.