Cannot change the default base branch `main` (GraphQL: Cannot change the base branch because the pull request is part of a stack. (updatePullRequest))
- 主要语言
- Go
- 星标
- 1.5k
- 派生
- 70
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 7
描述
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
贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github, go
- 领域
- api, cli
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100