Sub topic 12
Combining Copilot review with human review
This chapter shows how to fit Copilot's review into a team's normal pull request process. It assumes you have read the earlier chapters on requesting reviews, reading comments, re-requesting reviews, and automatic reviews. It also assumes you know how branch protection and required approvals work on GitHub. The goal is a workflow where Copilot removes routine work from human reviewers and does not replace their judgment.
What each reviewer is good at
Copilot and human reviewers catch different problems, so the two work best together.
| Concern | Copilot review | Human review |
|---|---|---|
| Typos, missed null checks, unhandled rejected promises | Often good | Good, but slow and tedious |
| Repeated patterns, such as string-built queries | Good, especially with custom instructions | Depends on who is reviewing |
| Whether the change solves the right problem | Weak. It sees the diff and nearby code, not your product goals | Strong |
| Design fit, naming, long-term maintainability | Inconsistent | Strong |
| Team agreements and unwritten context | Only what you wrote in instruction files | Strong |
| Accountability for merging | None | Yes |
The last row matters most. Copilot always leaves its review with the "Comment" status. It never approves a pull request and never requests changes. Its review does not count toward required approvals, and it does not block merging. A pull request that needs two approvals still needs two humans, however many comments Copilot posted.
Where Copilot fits in the pull request lifecycle
The usual pattern is to run Copilot first and the humans second. The author gets fast feedback, fixes the cheap issues, and then asks colleagues to review a cleaner diff.
Three habits make this loop work.
- Request Copilot early. Do it while the pull request is still a draft or before you tag colleagues. Early feedback is cheap to act on.
- Resolve or dismiss every Copilot comment before asking humans. A human reviewer who sees ten open Copilot threads cannot tell which ones the author already considered.
- Re-request only when the code has changed in a meaningful way. A reply to a comment or a typo fix does not need a new review. A new function or a refactor does.
Automatic review and the human queue
If you set up automatic reviews, through personal settings or a repository ruleset, Copilot reviews every pull request without anyone remembering to ask. That helps consistency. Two cautions apply.
- Automatic reviews add noise to small changes. If your team merges many one-line pull requests, decide whether the review on each is worth the clutter. Rulesets let you scope the rule to selected branches, so you can limit it to the branches that matter.
- Automatic review is not a merge gate. Even when Copilot reviews every pull request, the checks that block merging still come from your required status checks and required human approvals.
Keeping humans required
Make the human requirement explicit in repository settings. Do not rely on habit. A branch ruleset or branch protection rule can require a number of approving reviews before merge. Because Copilot's review never counts as an approval, this setting stays meaningful with Copilot enabled.
Add code owners as well. A CODEOWNERS file asks the right people to review changes to sensitive areas, and Copilot cannot stand in for them.
# .github/CODEOWNERS
# Each pattern is followed by the users or teams who must review matching files.
/db/migrations/ @example-org/database-team
/auth/ @example-org/security-team
/.github/ @example-org/platform-team
*.tf @example-org/platform-teamWhen a rule requires code owner review, a change in /auth/ waits for the security team, regardless of what Copilot said. Match your Copilot instructions to this split. Copilot can flag a pattern such as string-built SQL in any file, while the owning team decides whether a migration is safe to run.
Dividing the work with instructions
A custom instruction file can remove overlap between Copilot and the humans. If the linter already enforces formatting, tell Copilot to skip style, so human reviewers do not see formatting threads on every pull request. If humans always check architecture, tell Copilot to concentrate on correctness and security. Here is an example instruction file for this workflow:
# Review guidelines
- Focus on correctness, security, and missing tests. Do not comment on formatting; the linter enforces it.
- Flag any new database query that is built by string concatenation.
- Do not comment on architecture or naming. Human reviewers decide those.
- When you flag an issue, say why it matters in one or two sentences.Treat this file like code. Review changes to it in pull requests, and revise it when you notice Copilot repeating a useless comment. A comment that appears on many pull requests and is always dismissed is a signal to edit the instructions.
Reviewing Copilot's comments critically
Each Copilot comment is a suggestion from a reviewer with no accountability and no knowledge of your intent. Handle it in three steps.
- Check the claim against the code. Copilot sometimes describes a problem that does not exist, for example a missing null check that an earlier line already guarantees. Verify before changing anything.
- Check that the suggested fix compiles and does what you want. A suggested change can be syntactically valid but alter behavior. Run your tests after accepting one.
- Record why you dismissed it. One short reply, such as "validated upstream in
parseInput", saves the human reviewer from raising the same question.
Reviews are non-deterministic. Requesting a review twice on identical code can produce different comments. Do not re-request until the review comes back clean. You may be hunting for a lucky run, and you will not learn whether the code is correct.
Common mistakes
- Counting Copilot as the first reviewer in a "two reviewers" rule. It does not count. Use human reviewer counts when you plan capacity.
- Skipping the human review on small or urgent changes because Copilot found nothing. Urgent changes are the ones where careful review pays off most.
- Applying every suggestion in bulk. Batch-accepting suggestions mixes unreviewed machine edits into the history. Apply them one at a time, or at least read each one.
- Letting reviewers ignore Copilot's threads. If humans never look at open threads, authors learn to ignore them too. Agree as a team that the author resolves or answers each one.
- Pasting secrets or sensitive details into pull requests expecting Copilot to be a safe place. Follow your organization's data policies. Copilot's review does not change them.
A reviewer's checklist for a pull request that Copilot already reviewed
A human reviewer can use this order of work to save effort:
- Skim the Copilot review first. Note which comments the author applied and which they dismissed with a reason.
- Spot-check one or two dismissed comments. If the reasoning holds, trust the rest more.
- Spend your own time on what Copilot cannot judge: does the change match the ticket, is the design appropriate, are the tests meaningful, and what happens in production?
- Look for what Copilot did not mention. Think about edge cases, failure modes, and files that should have changed but did not.
- Approve or request changes yourself. The decision is yours and the author's.
A pull request template that encodes the workflow
A template reminds authors of the agreed steps. Save this as .github/pull_request_template.md:
## What and why
<!-- Describe the change and link the issue. -->
## Before requesting human review
- [ ] Copilot review requested and every comment applied, answered, or dismissed with a reason
- [ ] Copilot re-requested after any substantial new commits
- [ ] Tests pass locally and in CI
- [ ] Reviewer notes added for risky areas (migrations, auth, public APIs)The HTML comments in the template are only prompts for the author. They disappear from the rendered description once the author replaces them with text.
Measuring whether it helps
After a few weeks, check whether the workflow pays off. Useful signals include:
- Time from "ready for review" to first human review.
- How many human review comments are about issues Copilot could have caught. This number should shrink.
- The share of Copilot comments that authors apply. If it is very low, your instructions need tuning. If it is near 100%, authors may be accepting suggestions without reading them.
- Defects found after merge that both Copilot and humans missed. Use them to improve the checklist and the instruction files.
Summary of the rules
- Copilot leaves "Comment" reviews. It does not approve, request changes, or block merging.
- Keep required human approvals and code owner rules in place.
- Run Copilot first, clear its threads, then ask humans.
- Use instruction files to split the work: Copilot takes routine correctness and security checks, and humans take design and intent.
- Verify each suggestion. Reviews vary between runs, so a clean run proves little.
Exercise
Your team has a ruleset that requires one approving review before merge, and Copilot is configured to review every pull request automatically. A pull request has a Copilot review with three comments, the author fixed all three, and no human has looked at it. Can it be merged? Name two steps the author should take before asking a human to review.
Show answer
No. Copilot's review has the "Comment" status and never counts as an approval, so the required human approval is still missing. Before asking a human, the author should (1) resolve, answer, or dismiss each Copilot comment with a short reason, and (2) re-request a Copilot review if the fixes were substantial. Running tests and confirming that each fix did not change behavior is also a good step.
Exercise
Your reviewers keep leaving formatting comments, and Copilot posts style remarks that the linter already enforces. Which file would you change, and what would you add to it?
Show answer
Change the repository-wide instruction file, .github/copilot-instructions.md. Add lines telling Copilot to focus on correctness, security, and missing tests, and not to comment on formatting because the linter enforces it. Optionally add a line that architecture and naming are left to human reviewers.