`create_branch` returns a bare 404 when the token has no push access
維護者通常 2 天內回覆
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 68/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- github, go
研究方向
先找出 create_branch 工具的實作,以及它對 GitHub git/refs 請求的錯誤處理;再與 issue 中提到的 request_copilot_review 及其 copilotReviewErrMsg 比較。針對呼叫端可以讀取私有儲存庫,但沒有 push 權限的情況新增提示,並確認其他 404 原因仍然容易理解。
由索引模型根據 Issue 內容生成。
描述
Describe the bug
create_branch fails with 404 Not Found on a private repo I can read but can't push to. My agent took the 404 for a wrong repo or base branch and needed gh api repos/<owner>/<repo> --jq .permissions to find the cause. request_copilot_review explains this same 404 (copilotReviewErrMsg), so I think the write tools could do the same. Would you take a PR for create_branch, or would you rather have it in one place for all write tools?
Affected version
Remote server (https://api.githubcopilot.com/mcp/), 2026-12-01
Steps to reproduce the behavior
- Pick a private repo where
permissions.pushisfalsefor your user - Call
create_branchwithowner,repoandbranch
Expected vs actual behavior
Actual: failed to create branch: POST https://api.github.com/repos/<owner>/<repo>/git/refs: 404 Not Found []
Expected: the same error plus a hint that you can read the repo but your credentials have no write access
- 主要語言
- Go
- 星號
- 34.8k
- 分支
- 5.4k
- 平均合併
- 2 天 15 小時
- 30 天內合併 PR
- 34
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/github-mcp-server 的其他 Issue
-
enhancement
難度 2/5 1-3 小時 新手友好度 76/100
github/github-mcp-server#3992 ·
維護者通常 2 天內回覆
-
search_issues can't see an issue created seconds ago, so the "search before creating" guidance leads to duplicates on retry可能已有人在做 @tang-ontheway 於 2 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 78/100
github/github-mcp-server#3973 ·
維護者通常 2 天內回覆
-
list_issues and search_issues: inconsistent `fields` allow-lists (`html_url` rejected by list)可能已有人在做 @sarankumar1325 於 4 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 62/100
github/github-mcp-server#3960 ·
維護者通常 2 天內回覆
-
Scope-challenge middleware fails open when the token-scope fetch returns an error可能已有人在做 @Shanmukh-l33t 於 7 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
github/github-mcp-server#3929 · 1 則留言 ·
維護者通常 2 天內回覆
-
ListLabelsOutput drops every label id from the typed response可能已有人在做 @Shanmukh-l33t 於 8 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 88/100
github/github-mcp-server#3923 · 1 則留言 · 1 個 reaction ·
維護者通常 2 天內回覆
查看 github/github-mcp-server 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
agent-in-progress
難度 2/5 1-3 小時 新手友好度 72/100
jordansmall/spindrift#7716 ·
維護者通常 1 天內回覆
-
bug 🪲 needs-triage :mag:
難度 2/5 1-3 小時 新手友好度 67/100
Azure/azure-service-operator#5880 ·
維護者通常 1 天內回覆
-
needs-type
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
Add rebaseWhen: conflicted to major Go module Renovate updates可能已有人在做 @WadekarPrashant 今天認領。 未關閉enhancement feature good first issue ready-for-triage triaged
難度 2/5 1-3 小時 新手友好度 78/100
konflux-ci/build-definitions#3943 · 3 則留言 ·
維護者通常 1 天內回覆