Skip to content

Commit cf11c1c

Browse files
authored
Add back CCR custom instructions note (#59628)
1 parent 2d0cb99 commit cf11c1c

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

content/copilot/concepts/prompting/response-customization.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ Here are some common use cases and examples for each type of custom instructions
9393
* Preferred language for a company which exclusively speaks a single language: `Always respond in Portuguese.`
9494
* Organization-wide preferences: `Do not generate code blocks in responses.`
9595

96+
{% data reusables.copilot.code-review.custom-instructions-limit %}
97+
9698
{% data reusables.copilot.custom-instructions-effective %}
9799

98100
## Next steps

content/copilot/tutorials/use-custom-instructions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ Before writing custom instructions, it's helpful to understand how {% data varia
4545
* **Context limits**: Very long instruction files may result in some instructions being overlooked.
4646
* **Specificity matters**: Clear, specific instructions work better than vague directives.
4747

48+
{% data reusables.copilot.code-review.custom-instructions-limit %}
49+
4850
Keep these factors in mind as you write your instructions—they'll help you set realistic expectations and write more effective guidance.
4951

5052
## Writing effective custom instructions

data/reusables/copilot/code-review/custom-instructions-information.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ You can also write instructions that {% data variables.product.prodname_copilot_
66

77
For more information, see [AUTOTITLE](/copilot/customizing-copilot/adding-repository-custom-instructions-for-github-copilot).
88

9+
{% data reusables.copilot.code-review.custom-instructions-limit %}
10+
911
### Example
1012

1113
This example of a `.github/copilot-instructions.md` file contains three instructions that will be applied to all {% data variables.copilot.copilot_code-review_short %}s in the repository.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
> [!NOTE]
2+
> {% data variables.copilot.copilot_code-review_short %} only reads the first 4,000 characters of any custom instruction file. Any instructions beyond this limit will not affect the reviews generated by {% data variables.copilot.copilot_code-review_short %}. This limit does not apply to {% data variables.copilot.copilot_chat_short %} or {% data variables.copilot.copilot_coding_agent %}.

0 commit comments

Comments
 (0)