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 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.