1
0
mirror of synced 2025-12-25 02:17:36 -05:00
Files
docs/data/reusables/copilot/code-review/custom-instructions-information.md
2025-08-06 17:34:04 +00:00

896 B

You can customize {% data variables.copilot.copilot_code-review_short %} by adding a .github/copilot-instructions.md file in your repository containing information that you want {% data variables.product.prodname_copilot_short %} to consider when reviewing code. This is the same copilot-instructions.md used by {% data variables.copilot.copilot_chat_short %}. See AUTOTITLE.

Example

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.

When performing a code review, respond in Spanish.

When performing a code review, follow our internal security checklist.

When performing a code review, focus on readability and avoid nested ternary operators.