In short.
This GitHub tutorial is a guide for developers and repository maintainers who want more relevant Copilot code reviews, with the catch that Copilot may overlook or inconsistently follow instructions. It explains where to place shared and language-specific rules, how applyTo patterns select files, and why instructions are read from the pull request's head branch. Its examples provide a practical starting point, but the page supplies no measured improvement, pricing or instruction-adherence results.
Researched and written by an AI model and checked by a second AI model. How it works
Covers the complete captured documentation page at [https://docs.github.com/api/article/body?pathname=/en/copilot/tutorials/customize-code-review], including the head-branch note, examples, unsupported requests and troubleshooting. Linked documentation and repositories are excluded. No license notice is present in the supplied page. Actual Copilot behavior, review quality, access costs and changes after capture remain unassessed.
The overview
Resource identity
This is a GitHub documentation tutorial about customizing GitHub Copilot code review through repository instruction files. Its source address is [https://docs.github.com/api/article/body?pathname=/en/copilot/tutorials/customize-code-review].
The resource teaches configuration and writing practices. Its scope is Copilot code review; broader Copilot customization is covered by other pages that it links to.
Practical assessment
The tutorial is useful for teams that already have access to Copilot code review and want feedback to reflect their repository's conventions. It connects concrete review rules with file placement, examples and troubleshooting advice.
Its strongest contribution is an actionable way to organize guidance. The page does not establish how much this improves review quality or security coverage, and instruction files cannot make Copilot enforce merge requirements.
Who it suits
Developers who understand basic Markdown can use the examples to introduce a small set of review rules. Repository maintainers and team leads can use the organization guidance to separate shared standards from language-specific requirements.
The path-specific examples are particularly relevant to repositories containing several languages or frameworks. Readers seeking an introduction to obtaining Copilot access or configuring every supported customization mechanism will need additional documentation.
What it teaches
The page explains how to express review expectations for security, performance, naming, error handling, documentation and tests. It includes Python, React and TypeScript examples, plus a complete example combining shared standards with TypeScript-specific rules.
It covers repository-wide copilot-instructions.md files, path-specific files ending in .instructions.md, and root-level AGENTS.md guidance. It also explains how to troubleshoot ignored instructions, rules applied to the wrong files and inconsistent review behavior.
Using it
Requirements
The stated prerequisites are access to Copilot code review, a GitHub repository where the reader can create instruction files, and basic familiarity with Markdown.
Following the suggested iteration process also requires opening pull requests and requesting Copilot reviews. The page does not specify eligible subscription plans, organization settings, editor requirements or review quotas.
How the instructions work
Copilot reads instruction files when reviewing a pull request and uses their contents to guide its analysis. Shared instructions apply across the repository; path-specific files use an applyTo frontmatter property to identify matching files.
The page explicitly says repository custom instructions, agent instructions and agent skills are read from the head branch, meaning the branch containing the proposed changes. This allows instruction changes to influence a review of the same pull request. The tutorial does not define precedence for conflicting files or explain how to configure agent skills.
Getting started
Place shared review guidance in .github/copilot-instructions.md. Put language-specific or directory-specific guidance in .github/instructions using filenames such as python.instructions.md, with an applyTo property identifying the relevant paths. The tutorial describes AGENTS.md at the repository root for agent-specific guidance.
Start with 10–20 concrete instructions addressing common review needs. Use short directives, clear sections and examples of preferred and undesirable code. Request a Copilot review on a pull request containing the instruction files, observe the feedback, then refine a few rules at a time.
A concrete example
For a repository containing Python and TypeScript, shared instructions could ask Copilot to flag exposed credentials and missing input validation. A file at .github/instructions/python.instructions.md with applyTo set to "**/*.py" could contain Python naming rules and guidance on using context managers for files.
A separate typescript.instructions.md file could use "**/*.{ts,tsx}" and contain rules about explicit types and handling missing values. These configurations follow the tutorial's examples; their effect on an actual review is unassessed.
Assessment & evidence
Limits and unsupported requests
Copilot may miss instructions, especially when files are long, ambiguous or conflicting. The tutorial recommends keeping each instruction file to about 1,000 lines at most; this is writing guidance, not a guaranteed processing threshold.
The page lists unsupported attempts to change comment formatting, customize the pull request overview, block merging until comments are addressed, or generate a changelog for every pull request. Instructions also cannot make the reviewer follow external standards links; the suggested workaround is to include the relevant content directly.
Vague requests for greater accuracy or consistency are discouraged. The page provides no measured adherence rate, completeness guarantee or benchmark for finding defects.
Why the approach may fit
The organization makes sense for teams whose expectations can be expressed as specific review rules: shared files capture common standards, while path matching keeps language-specific guidance focused. Examples give concrete meaning to rules that would otherwise be open to interpretation.
This is an assessment of the documented design. No measured improvement is established. The recommendation to start small and revise rules after observing reviews is consistent with the page's warning that AI responses vary.
Other routes described
Within the tutorial, the main choices are repository-wide guidance for common standards, path-specific guidance for particular files, and AGENTS.md for agent-specific expectations. These serve different scopes and can be combined.
For additional examples, the page links to [https://github.com/github/awesome-copilot/tree/main/instructions]. It also links to a broader setup guide at [https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/add-custom-instructions]. Those linked pages are outside the available evidence. No comparison with other code-review assistants is provided.
Evidence and confidence
The evidence is the complete captured GitHub documentation page, including its explanatory text, instruction-file examples, unsupported-request list and troubleshooting guidance. It supports claims about what GitHub documents and recommends.
No execution results, actual Copilot review transcripts, benchmarks or independent evaluations are available. The examples show proposed configuration; actual instruction adherence and review quality remain unassessed.
Access & freshness
Costs and access
The page requires access to Copilot code review but gives no prices, subscription eligibility, usage allowances or billing rules. The cost of obtaining access and using reviews is unknown from this evidence.
It recommends repeated reviews while refining instructions, but does not quantify the time required or any associated usage charges.
Reuse and licensing
The supplied page contains no license notice or redistribution terms for its text and instruction examples. Permission to redistribute those materials is therefore unknown from this evidence.
The page also does not establish the service terms or data-handling conditions applicable to Copilot code review.
Documentation freshness
The documentation capture is dated 2026-11-14T22:13:31.615Z. The supplied page does not state a publication date, last-update date, Copilot model version or versioned compatibility matrix.
Its file-support descriptions and unsupported behaviors reflect that capture. Changes after the capture are unknown.
Suggested next steps
Confirm access to Copilot code review, choose a small set of recurring review needs, and write specific rules in the appropriate repository or path-specific file. Check that applyTo patterns match the intended files and that the proposed branch contains the instructions.
Request a review of representative changes and inspect which rules influence the feedback. Refine missed or ambiguous rules gradually. Keep requirements that must block merging in enforceable repository controls, since the tutorial says custom review instructions cannot provide that enforcement.
