Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

未關閉
#455 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
45/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
github, go
領域
api, cli

研究方向

首先使用 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

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

github/gh-stack 的其他 Issue

查看 github/gh-stack 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。