Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 783f504

Browse files
authored
Merge pull request github#41239 from github/repo-sync
Repo sync
2 parents 4bac2c3 + 09eca3a commit 783f504

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/auto-add-ready-for-doc-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
- name: Add ready-for-doc-review label
4949
if: steps.membership_check.outputs.result == 'false'
5050
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }}
5252
PR_URL: ${{ github.event.pull_request.html_url }}
5353
run: |
5454
gh pr edit $PR_URL --add-label ready-for-doc-review

data/reusables/copilot/custom-instructions-path.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,19 @@
2020
---
2121
```
2222

23-
To apply the instructions to all files, use `applyTo: "**"`.
23+
To apply the instructions to all files, use `applyTo: "**"`, `applyTo: "*"`, or `applyTo: "**/*"`.
24+
25+
1. Optionally, to prevent the file from being used by either {% data variables.copilot.copilot_coding_agent %} or {% data variables.copilot.copilot_code-review_short %}, add the `excludeAgent` keyword to the frontmatter block. Use either `"code-review"` or `"coding-agent"`.
26+
27+
For example, the following file will only be read by {% data variables.copilot.copilot_coding_agent %}.
28+
29+
```markdown
30+
---
31+
applyTo: "**"
32+
excludeAgent: "code-review"
33+
---
34+
```
35+
36+
If the `excludeAgent` keyword is not included in the front matterblock, both {% data variables.copilot.copilot_code-review_short %} and {% data variables.copilot.copilot_coding_agent %} will use your instructions.
2437

2538
1. Add your custom instructions in natural language, using Markdown format. Whitespace between instructions is ignored, so the instructions can be written as a single paragraph, each on a new line, or separated by blank lines for legibility.

0 commit comments

Comments
 (0)