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

'No copilot-instructions.md found' notice is misleading when global config exists

已關閉 適合新手
#3,409 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
68/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
冷清
技術堆疊
shell
領域
cli

研究方向

首先定位輸出「找不到 copilot-instructions.md」通知的 Copilot CLI 程式碼,並檢視它如何偵測 repository 外部的全域檔案 ~/.copilot/copilot-instructions.md。更新通知,使其能區分缺少 repository 層級檔案的情況,然後使用 issue 中的重現步驟驗證行為。

由索引模型根據 Issue 內容生成。

描述

area:configuration
Describe the bug

When opening the Copilot CLI outside of a git repository, the notice No copilot-instructions.md found. Run /init to generate. is misleading. it implies no instructions file was found at all, even when a global ~/.copilot/copilot-instructions.md exists and is being used.

Affected version

GitHub Copilot CLI 1.0.49.

Steps to reproduce the behavior
  1. Create a global instructions file at ~/.copilot/copilot-instructions.md
  2. Open Copilot CLI from a directory that is not a git repository
  3. Observe the notice: No copilot-instructions.md found. Run /init to generate.
Expected behavior
  1. Create a global instructions file at ~/.copilot/copilot-instructions.md
  2. Open Copilot CLI from a directory that is not a git repository
  3. Observe the notice: No repository-level copilot-instructions.md found. Run /init to generate.
Additional context

No response

主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

貢獻指南

開啟貢獻指南

從這裡開始

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

github/copilot-cli 的其他 Issue

查看 github/copilot-cli 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

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

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