Cannot change the default base branch `main` (GraphQL: Cannot change the base branch because the pull request is part of a stack. (updatePullRequest))
還沒有人認領這個 Issue。
評估
研究方向
首先使用 gh pr edit --base <your-parent-branch> 重現問題,並檢查回報的 updatePullRequest GraphQL 錯誤。確定堆疊的 pull request 是否支援變更基礎分支,然後記錄這項限制,或定義 staging 與多功能工作流程所需的行為。
由索引模型根據 Issue 內容生成。
描述
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
- 主要語言
- Go
- 星號
- 1.5k
- 分支
- 73
- 平均合併
- 13 小時 24 分鐘
- 30 天內合併 PR
- 3
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/gh-stack 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 85/100
-
難度 1/5 1 小時以內 新手友好度 92/100
-
feature request topic: cli - general
難度 2/5 1-3 小時 新手友好度 68/100
-
feature request topic: auto-merge
難度 2/5 1-3 小時 新手友好度 68/100
-
bug topic: docs
難度 1/5 1 小時以內 新手友好度 68/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
bazel-contrib/rules_go#4726 · 1 則留言 ·
-
area/auto-scaling area/monitoring area/ops-productivity kind/enhancement
難度 2/5 1-3 小時 新手友好度 74/100
-
難度 2/5 1-3 小時 新手友好度 78/100
-
Type/Improvement
難度 1/5 1-3 小時 新手友好度 90/100
OpenNSW/nsw-srilanka#522 ·
-
難度 2/5 1-3 小時 新手友好度 92/100