From b1c872e5a3f051f60211f2fdb86f1581b3b8ff6d Mon Sep 17 00:00:00 2001 From: Ria Gopu Date: Wed, 12 Nov 2025 14:01:51 -0800 Subject: [PATCH 1/2] Update path-specific instructions docs with excludeAgent frontmatter (#58459) Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Joe Clark <31087804+jc-clark@users.noreply.github.com> --- .../reusables/copilot/custom-instructions-path.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/data/reusables/copilot/custom-instructions-path.md b/data/reusables/copilot/custom-instructions-path.md index a2d60c840108..55d221853629 100644 --- a/data/reusables/copilot/custom-instructions-path.md +++ b/data/reusables/copilot/custom-instructions-path.md @@ -20,6 +20,19 @@ --- ``` - To apply the instructions to all files, use `applyTo: "**"`. + To apply the instructions to all files, use `applyTo: "**"`, `applyTo: "*"`, or `applyTo: "**/*"`. + +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"`. + + For example, the following file will only be read by {% data variables.copilot.copilot_coding_agent %}. + + ```markdown + --- + applyTo: "**" + excludeAgent: "code-review" + --- + ``` + + 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. 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. From 09eca3a9ab33297688b7b07dce54a91effce2555 Mon Sep 17 00:00:00 2001 From: Joe Clark <31087804+jc-clark@users.noreply.github.com> Date: Wed, 12 Nov 2025 16:15:23 -0800 Subject: [PATCH 2/2] Change GitHub token in `auto-add-ready-for-doc-review.yml` (#58470) --- .github/workflows/auto-add-ready-for-doc-review.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-add-ready-for-doc-review.yml b/.github/workflows/auto-add-ready-for-doc-review.yml index 89ac6e31d753..7b58c76c72f1 100644 --- a/.github/workflows/auto-add-ready-for-doc-review.yml +++ b/.github/workflows/auto-add-ready-for-doc-review.yml @@ -48,7 +48,7 @@ jobs: - name: Add ready-for-doc-review label if: steps.membership_check.outputs.result == 'false' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.DOCS_BOT_PAT_BASE }} PR_URL: ${{ github.event.pull_request.html_url }} run: | gh pr edit $PR_URL --add-label ready-for-doc-review