Sub topic 12
Combining Copilot review with human review
This chapter assumes you can open and merge pull requests on GitHub. It also assumes you have requested a Copilot review before and read its comments. You should know what a review comment and a "Comment" review status look like.
Why the two reviews differ
Copilot posts its review with the "Comment" status. It never approves a pull request and never requests changes. Because of that, its review does not count toward required approvals under branch protection or rulesets. A person must still approve before merge.
The two kinds of review also catch different things.
| Aspect | Copilot review | Human review |
|---|---|---|
| Speed | Usually minutes | Hours or days |
| Strength | Common bugs, missing error handling, security patterns, typos | Design fit, product intent, team conventions, risk |
| Context | The diff and some surrounding code | Project history, requirements, and users |
| Consistency | Can vary between runs | Varies by person and mood |
| Accountability | None. It cannot approve | Named approver |
Copilot can be wrong, as the limitations chapter explains. It can also miss problems. Treat its output as a first pass, not a verdict.
A workflow that fits both
A practical order puts Copilot first, so human reviewers see a cleaner diff.
The steps are:
- The author opens the pull request, or marks a draft as ready, and requests a Copilot review. Automatic reviews can do this step for you.
- The author reads each Copilot comment. They apply the useful suggestions and dismiss the rest.
- The author re-requests a review after pushing fixes, then repeats step 2 until the comments stop being useful.
- The author asks a teammate for review.
- The human reviewer approves or requests changes. The merge happens only after that.
Make the human review count
Set up your repository so that the rules enforce the order above.
- Require at least one approving review in a branch protection rule or ruleset. Copilot's "Comment" review will not satisfy it.
- Consider requiring review from code owners for sensitive paths such as authentication or payment code.
- Keep Copilot's custom instructions focused on correctness and security. Leave style to the linter, so human reviewers do not see formatting noise.
Human reviewers should not repeat what Copilot already covered. They can skim resolved Copilot threads and spend their time on questions Copilot cannot answer:
- Does this change solve the right problem?
- Is the design consistent with the rest of the system?
- Are the tests meaningful, or do they only raise coverage?
- What happens in production if this fails?
Handling disagreements
Sometimes a person disagrees with Copilot's comment, or Copilot disagrees with the author's approach. The person decides. Resolve the thread with a short reply that says why the suggestion does not apply. That reply helps the next reader, who might otherwise raise the same issue.
If Copilot makes the same unhelpful comment repeatedly, do not argue with it in each pull request. Add a line to the custom instructions that tells it what to skip. For example:
- Do not suggest renaming variables in generated files under `src/generated/`.Treat repeated false positives as a signal to tune your instructions, not as a reason to ignore every comment.
Common mistakes
- Treating a clean Copilot review as approval. No comments means Copilot found nothing it chose to mention. It does not mean the code is correct.
- Applying suggestions without running tests. A suggested change can compile and still change behavior. Run the test suite after each batch.
- Skipping human review on small changes. Short diffs can still contain risky changes, such as a permission check.
- Letting reviewers duplicate effort. Agree as a team that humans focus on design and intent, and Copilot covers routine checks.
Exercise
Exercise
A pull request has a Copilot review with no comments, and the branch rule requires one approval. A teammate says it is ready to merge. What is wrong with that, and what should happen next?
Show answer
Copilot only leaves "Comment" reviews, so it does not satisfy the required approval. An empty review also does not show that the code is correct, only that Copilot raised nothing. A human reviewer must read the change and approve it before it can be merged.
Exercise
Copilot keeps flagging style issues that your linter already enforces, and reviewers find them distracting. What is the right fix?
Show answer
Add a line to the repository custom instructions that tells Copilot to prefer correctness and security comments and to leave formatting to the linter. If the noise comes from specific files, use a path-specific instruction file to scope the guidance.