github / github/copilot-cli

Regression: COPILOT_CUSTOM_INSTRUCTIONS_DIR not loading all instructions

未关闭
#2,181 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
area:configuration
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

### Describe the bug

In v1.0.9, instruction files specified via COPILOT_CUSTOM_INSTRUCTIONS_DIRS are not being loaded. This
worked correctly in v1.0.8.

Environment:

- COPILOT_CUSTOM_INSTRUCTIONS_DIRS points to 7 directories, each containing
.github/instructions/team.instructions.md with applyTo frontmatter
- Working directory is a multi-root workspace that is not a git repository

### Affected version

v1.0.9

### Steps to reproduce the behavior

1. Set COPILOT_CUSTOM_INSTRUCTIONS_DIRS to one or more directories containing
.github/instructions/*.instructions.md
2. Launch the CLI in a directory that is not a git repo root
3. Run /instructions

### Expected behavior

Expected: All instruction files from COPILOT_CUSTOM_INSTRUCTIONS_DIRS appear in the list.

### Additional context

_No response_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。