Sub topic 3
Requesting a review on a pull request
This chapter covers the mechanics of asking Copilot to review a pull request (PR) on GitHub. It assumes you can already open a PR, push commits to its branch, and read a diff. It also assumes your account has a Copilot plan that includes code review, which the previous chapter covered. Here you will request a review, follow what happens while it runs, and handle the common cases where the option is missing or nothing seems to happen.
What a request actually does
When you request a review from Copilot, GitHub sends the PR's diff and some surrounding context to a Copilot model. The model returns a set of comments. GitHub posts them as a normal pull request review under the Copilot reviewer identity.
Two properties of that review shape everything else in this chapter:
- The review always has the Comment status. Copilot never approves a PR and never requests changes.
- A Copilot review does not count toward required approvals. A branch protection rule that requires one approving review is not satisfied by Copilot.
So the request is cheap and has no side effects on your merge rules. You can ask for one at any point without affecting the human review process.
The basic flow
The steps below are the same on every PR.
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.This chapter covers steps 1 to 4. Steps 5 and 6 get their own chapters.
Step by step
- Open the pull request. Go to the Pull requests tab of the repository and open the PR. You can also request a review while creating a PR, because the Reviewers menu appears on the "Open a pull request" page too.
- Open the Reviewers menu. It is in the right-hand sidebar, at the top, with a gear icon. It is the same menu you use to ask teammates for review.
- Select Copilot. Copilot appears in the list alongside people and teams. Click it. If you don't see it, check the troubleshooting section below.
- Wait for the review. Copilot shows as a requested reviewer, usually with an in-progress indicator. A review typically appears within about 30 seconds on a small PR. Larger diffs take longer. The page updates on its own, but a refresh does no harm.
What happens between the request and the review
The sequence below shows who does what. You interact only with GitHub. The model call is internal.
Note that the instruction files from your repository are part of what GitHub sends. The two later chapters on custom instructions build on that. For now, it is enough to know that a repository with no instruction files still gets a review. It just gets a generic one.
Who can request a review
In general, you need to be able to see the PR and have access to Copilot code review through your own plan or through an organization that grants it. Two cases come up often:
- Your own plan. If you have a personal Copilot plan that includes code review, you can request a review on PRs you can access.
- An organization or enterprise plan. An administrator may have turned code review on or off for your organization. If it is off, the option does not appear.
Because the exact plan tiers and policy names change over time, check GitHub's current documentation for your plan rather than relying on a table in a tutorial.
Reading the result in context
After the review posts, the PR timeline shows an entry such as "Copilot reviewed N files" or a similar summary. The review contains:
- A short overview comment describing what Copilot looked at and what it found.
- Inline comments attached to specific lines in the Files changed tab.
- Where it can, suggested changes. These are code blocks you can apply with one click.
Not every review includes inline comments. If Copilot finds nothing it considers worth flagging, you may get only the overview. A review with no comments is not a clean bill of health. It means the model did not flag anything. The limitations chapter returns to this.
Requesting a review at different moments
You can request Copilot at several points in a PR's life. Each has a different purpose.
| Moment | Why do it | Watch out for |
|---|---|---|
| While opening the PR | Get feedback before any human looks at it | The description may still be thin, so context is limited |
| Before requesting human review | Catch small issues so people spend time on design | Fixes you push afterward need a re-request |
| After a large revision | Check that the new changes did not introduce problems | Comments may repeat ones you already dismissed |
| On someone else's PR | Get a second opinion as a reviewer | Tell the author, so they are not surprised by bot comments |
A practical habit is to request Copilot first, fix what is valid, and only then ask a teammate. This keeps reviewer attention on questions a model cannot answer, such as whether the approach fits the product.
A worked example
Suppose you open a PR that adds a search endpoint. The diff includes this function:
import sqlite3
def find_users(conn: sqlite3.Connection, name: str):
query = "SELECT id, email FROM users WHERE name = '" + name + "'"
return conn.execute(query).fetchall()You select Copilot in the Reviewers menu. A short time later, a review appears. A typical comment on the query line would say that building SQL by string concatenation allows SQL injection, and it would suggest a parameterized query:
import sqlite3
def find_users(conn: sqlite3.Connection, name: str):
query = "SELECT id, email FROM users WHERE name = ?"
return conn.execute(query, (name,)).fetchall()The suggested change appears as a block with a Commit suggestion button. The exact wording of Copilot's comment will differ from run to run. That variation is normal and is discussed in the limitations chapter. What matters here is that you did one thing, selected a reviewer, and got a review attached to the right lines.
Checking the request state
While you wait, you can tell where the request stands from the Reviewers section of the sidebar:
- Copilot listed, no review yet: the review is still running, or it failed to start.
- Copilot listed with a review icon: a review has been submitted.
- Copilot not listed: the request was never made, or it was removed.
If the review seems stuck for several minutes, remove Copilot from the Reviewers menu and select it again. Large PRs are the usual cause of slow reviews. Splitting the change into smaller PRs gives better results anyway.
Troubleshooting
Most problems come from access or from the PR itself.
Copilot is not in the Reviewers menu
Check these in order:
- Plan. Confirm the account you are signed in with has a Copilot plan that includes code review.
- Organization policy. If the repository belongs to an organization, ask an administrator whether Copilot code review is enabled for it.
- Account. Make sure you are signed in with the account that has the plan, not a second account.
- Repository access. On a repository where you only have read access, the Reviewers menu may be limited.
The review posts but has few or no comments
This can happen for good reasons. The diff may be small, the change may be mostly generated or non-code files, or the model may have found nothing to flag. Copilot also may not review every file in a very large PR. If you expected comments on a particular file, look at the review summary to see whether the file was covered.
The review seems to ignore your conventions
Without instruction files, Copilot has no knowledge of your team's rules. Add a repository instruction file as described in the next chapters, then request a new review.
The same review request gives different comments
Language models are not deterministic. Two requests on the same diff can produce different wording and sometimes different findings. Do not treat the absence of a comment on one run as proof that the code is fine.
Habits that make requests more useful
- Write a real PR description. The title and description give Copilot the intent of the change. A PR titled "fix" gives it little to work with.
- Keep PRs small. Smaller diffs get faster and more focused reviews.
- Request after the diff is stable. If you are still pushing commits every few minutes, wait. Each new push may need a re-request, and early comments may go stale.
- Resolve or dismiss comments before human review. Reviewers then see a cleaner PR and know which Copilot comments you already considered.
Summary of the key points
Requesting a review takes one action in the Reviewers menu. The result is a Comment-status review that never approves and never blocks. It is advisory input to your own judgment. Missing options come down to plan, organization policy, or access. Variation between runs is expected.
Exercise
You select Copilot in the Reviewers menu on a PR whose branch protection rule requires one approving review. Copilot posts a review with several comments and no issues remain. Can you merge based on that review alone? Explain why or why not.
Show answer
No. A Copilot review has the Comment status. It never approves a PR, and it does not count toward required approvals. You still need the approving human review that the branch protection rule requires.
Exercise
A teammate says that Copilot is missing from the Reviewers menu on their PR, while it appears on yours in the same repository. Name two causes you would check first.
Show answer
First, check whether their account has a Copilot plan that includes code review, and whether they are signed in with that account. Second, check whether their organization policy enables Copilot code review for them. Having only read access to the repository is a third possible cause.
Exercise
You request a review twice on the same unchanged diff and get different comments. Is this a sign that something is broken? What should you conclude about a run that produced no comment on a risky line?
Show answer
It is not broken. The model is non-deterministic, so wording and findings can vary between runs. A missing comment on a risky line does not show the line is safe. Review that line yourself or ask a human reviewer.