Sub topic 6
Re-requesting a review after new commits
This chapter assumes you can open a pull request, push commits to its branch, and read inline review comments. It also assumes you have already requested a Copilot review from the Reviewers menu and read the comments it posted. Here you will learn what happens to a Copilot review after the code changes, how to ask for a fresh review, and how to judge the result.
Why a review goes stale
A Copilot review is a snapshot. It describes the pull request as it looked when the review ran. When you push more commits, the review does not update itself. The old comments stay in the conversation, and some may point at lines you have since changed.
Human reviewers work the same way, but GitHub gives you more signals with them. A human approval can be dismissed when new commits arrive, if branch protection is set up that way. Copilot's review never counts as an approval, so there is nothing to dismiss. You are the one who has to notice that the review is out of date.
Two things follow from this:
- A pull request with a Copilot review from an hour ago says nothing about the commits pushed since.
- Unless automatic reviews are configured to run on pushes (covered below), nobody will trigger a new review for you.
The re-request button
Once Copilot has reviewed a pull request, its name appears in the Reviewers section of the sidebar with a review status. Next to the name is a re-request button, shown as a circular arrow icon. Selecting it asks Copilot to review the pull request again.
The basic sequence is the one from the tutorial's step list:
1. Open the pull request on GitHub.
2. In the sidebar, open the Reviewers menu.
3. Select Copilot.
4. Wait for Copilot to post a review with the "Comment" status.
5. Read the comments and apply or dismiss each suggestion.
6. After pushing new commits, use the re-request review button next to Copilot's name.Step 6 is the subject of this chapter. It is the same action you would use for a human reviewer. You click the re-request icon next to their name, and they get a notification that the pull request is ready to look at again.
Copilot's response takes a short time, usually under a minute for a small change. While it works, the sidebar shows that a review is pending. When it finishes, a new review appears in the conversation timeline with the "Comment" status.
A typical review loop
The loop below is the most common way to use re-requests. Each pass is one iteration of: review, fix, push, re-request.
In practice, a few concrete habits make the loop work:
- Resolve the comments you have handled before you re-request. A clean conversation makes it easier to see which comments are new.
- Push all your fixes first, then re-request once. Re-requesting after every small commit produces repeated reviews of nearly identical code.
- Read the new review in full. Do not assume it only covers your latest commits.
What a re-review covers
A re-request starts a new review. It is not a diff against the previous Copilot review. The new review looks at the pull request as it stands now, and it may comment on code you did not touch in the latest commits.
That has some practical consequences.
- New comments on old code. Copilot may raise something it did not mention the first time. This is a result of how the model works, not a sign that something broke. Output varies between runs even on identical input.
- Repeated comments. A concern you dismissed or answered may appear again. Copilot does not reliably treat your earlier replies as a decision.
- Missing comments. A problem that Copilot flagged earlier may not be flagged this time, even if you did not fix it. Do not read silence as confirmation that the code is fine.
- Different wording. The same underlying issue may be described differently, so match comments by the code they point to, not by their text.
Handling repeated comments
When a comment you already dealt with comes back, you have three reasonable choices.
- Fix it. If the second mention makes you reconsider, the issue may be real.
- Reply with the reason. Write a short reply in the thread, such as "Intentional: this value is validated in
parse_config." The reply helps human reviewers who read the thread later, even if Copilot ignores it. - Move the rule into instructions. If Copilot keeps flagging something your team does on purpose, add a line to your repository custom instructions. For example: "Do not flag missing null checks in files under
internal/; inputs are validated at the boundary." This addresses the cause instead of repeating replies, and it lasts for every future review.
The instruction file is covered in the chapters on repository-wide and path-specific instructions. Note that instruction changes only apply to reviews that start after the change is merged or present in the relevant branch. The exact rules for which version of the file Copilot reads can differ, so check GitHub's current documentation if your change seems to have no effect.
Re-requesting versus automatic review on push
You can avoid clicking the button if you set up automatic reviews. GitHub's repository rulesets include an option to automatically request a Copilot review for pull requests. As of this writing, the ruleset also has a setting to review new pushes. With that setting off, Copilot reviews a pull request once when it is opened and does not review later commits. With it on, Copilot reviews again whenever new commits arrive. Check the ruleset screen in your repository, since option names and defaults can change.
The two approaches compare like this:
| Approach | Who triggers it | Best when | Drawback |
|---|---|---|---|
| Manual re-request | You, by clicking the button | You push in batches and want control over timing | Easy to forget, so reviews go stale |
| Automatic review on new pushes | GitHub, on every push | The team wants a consistent review of each update | Many reviews on active branches, and more repeated comments |
A reasonable default is to use automatic review for the first pass, and manual re-requests for later rounds. That keeps noise down while still catching the first version of the change.
Re-requesting on draft and in-progress work
Copilot can review pull requests while you are still working. This can be useful, but a re-request on unfinished code mostly produces comments about the unfinished state. If you want to use it early, say what you want in the pull request description, or leave a comment such as "Only the parser changed. The CLI wiring comes next." Copilot may take the description into account, though you should not count on that.
If your repository is set to skip draft pull requests in its automatic review settings, a manual re-request still works. The setting only affects what GitHub triggers on its own.
A worked example
Suppose you opened a pull request that adds an endpoint. Copilot's first review contained two comments:
- The SQL query in
get_useris built with string concatenation. - The new function
export_reporthas no tests in this pull request.
You fix both and push:
# Replace the concatenated query with a parameterized one
git add app/users.py
git commit -m "Use parameterized query in get_user"
# Add the missing test
git add tests/test_reports.py
git commit -m "Add tests for export_report"
git push origin feature/user-exportThen you resolve the two threads and click the re-request button next to Copilot. After a short wait, a second review appears with these comments:
- A new comment says
export_reportswallows an exception in a broadexceptblock. - A comment on
get_usersuggests renaming a variable for clarity.
The first is worth acting on. It is a correctness concern in code you wrote in the same pull request, and the first review missed it. The second is a style preference. Your team's linter handles naming, so you dismiss it with a short reply. Neither of the original issues came back, and you confirmed the query fix yourself by running the tests, so you move on to requesting human review.
This example shows the normal pattern: a re-review mixes useful new findings with low-value ones, and your job is to sort them.
Common problems
The re-request button is missing. The button appears only after Copilot has submitted at least one review. If Copilot's review is still in progress, or if it failed, you may need to wait or request it again from the Reviewers menu.
Nothing happens after clicking. Reload the page. If the sidebar still shows no pending review, remove Copilot from the reviewers and add it again from the menu. Also check that your plan still includes code review and that you have not run out of any usage allowance your plan applies.
The review ignores a recent commit. Confirm the commit is on the pull request branch and appears in the Commits tab. A commit pushed to a different branch or a fork you cannot update will not be part of the review.
Comments appear on lines that did not change. This is expected. A re-review looks at the whole pull request, not only the newest commits.
The review feels slower or shorter on large pull requests. Very large diffs may be reviewed only partially. Splitting the work into smaller pull requests gives better reviews and makes each re-request cheaper to read.
Summary of the habits
- Treat each Copilot review as a snapshot, valid only for the commit it saw.
- Push your fixes in a batch, resolve handled threads, then re-request once.
- Read the whole new review, because it can contain new, repeated, or missing comments.
- Verify real bugs yourself instead of trusting a silent second review.
- Move recurring false positives into custom instructions.
- Use automatic review on pushes only if the extra volume is acceptable to your team.
- A Copilot review never replaces the human approval your branch protection requires.
Exercise
You pushed three commits that fix both comments from Copilot's first review. You then re-requested a review, and the new review contains no comments at all. Can you consider the fixes verified? Explain, and name one step you should take next.
Show answer
No. Copilot's output is not deterministic, and a re-review is a fresh pass over the whole pull request, not a check of your earlier comments. An empty review means it found nothing to say this time, not that the fixes are correct. Verify the fixes yourself, for example by running the tests or reading the changed code, and then request the human review that your branch protection requires.
Exercise
Copilot keeps repeating a comment about missing null checks in a folder where inputs are always validated earlier. You have replied to the thread twice. What is a more lasting fix than replying again?
Show answer
Add a rule to the repository custom instructions (or a path-specific instruction file that applies to that folder) telling Copilot not to flag missing null checks there and explaining that inputs are validated at the boundary. Future reviews will then take the guidance into account, although the behavior is still not guaranteed.
Exercise
Your team wants every push to a pull request reviewed by Copilot without anyone clicking the re-request button. Where is this configured, and what is one trade-off?
Show answer
It is configured through repository rulesets, in the option that automatically requests Copilot code review, with the setting to review new pushes turned on. The trade-off is volume: active branches get many reviews, which can bring repeated or low-value comments that the author must read and sort.