Skip to content

Commit 5a6909a

Browse files
ria-gopuCopilotCopilot
authored
Update code review docs: custom instructions read from head branch (#62248)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Copilot-Session: afad84f8-25e0-43c6-ba7b-2506a82bed5a
1 parent ee3eb74 commit 5a6909a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

content/copilot/concepts/agents/code-review.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ When {% data variables.copilot.copilot_code-review_short %} is enabled for these
160160

161161
If your repository includes agent skills, {% data variables.copilot.copilot_code-review_short %} can automatically use relevant skills when reviewing a pull request, extending {% data variables.product.prodname_copilot_short %} beyond its built-in analysis.
162162

163+
{% data reusables.copilot.code-review.custom-instructions-branch %}
164+
163165
For setup details, see [AUTOTITLE](/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/add-skills).
164166

165167
### MCP servers
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
When reviewing a pull request, {% data variables.product.prodname_copilot_short %} uses the custom instructions in the base branch of the pull request. For example, if your pull request seeks to merge `my-feature-branch` into `main`, {% data variables.product.prodname_copilot_short %} will use the custom instructions in `main`.
1+
When reviewing a pull request, {% data variables.product.prodname_copilot_short %} reads repository custom instructions, agent instructions, and agent skills from the head branch (the branch with your changes), not the base branch. For example, when merging `my-feature-branch` into `main`, {% data variables.product.prodname_copilot_short %} uses the instructions and skills in `my-feature-branch`, so you can test changes to them in the same pull request without merging them first.

0 commit comments

Comments
 (0)