5.6 KiB
title, shortTitle, intro, product, versions, topics, redirect_from, contentType
| title | shortTitle | intro | product | versions | topics | redirect_from | contentType | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Reviewing a pull request created by GitHub Copilot | Review Copilot PRs | After {% data variables.product.prodname_copilot_short %} creates a pull request, you should review it. You can mention `@copilot` to ask {% data variables.product.prodname_copilot_short %} to make changes, or push changes yourself. | {% data reusables.gated-features.copilot-coding-agent %}<br><a href="https://github.com/features/copilot/plans?ref_product=copilot&ref_type=engagement&ref_style=button" target="_blank" class="btn btn-primary mt-3 mr-3 no-underline"><span>Sign up for {% data variables.product.prodname_copilot_short %}</span> {% octicon "link-external" height:16 %}</a> |
|
|
|
how-tos |
Note
For an introduction to {% data variables.copilot.copilot_coding_agent %}, see AUTOTITLE.
Reviewing {% data variables.product.prodname_copilot_short %}'s changes
After {% data variables.product.prodname_copilot_short %} has finished working on a coding task, and has requested a pull request review from you, you should review {% data variables.product.prodname_copilot_short %}'s work thoroughly before merging the pull request.
Important
If you have branch protection rules that require pull request approvals, and you initiate a pull request by assigning an issue to {% data variables.product.prodname_copilot_short %}, you can approve the pull request, but your approval won't count toward the required number of approvals. Someone else must approve the pull request for it to be merged.
Additionally, if the "Require approval of the most recent reviewable push" setting is enabled, the final push to the pull request will require n + 1 approvals, where n is the number of required approvals. The person who initiated the original {% data variables.product.prodname_copilot_short %} pull request can't be counted among the required reviewers for that final push—but if someone else requested the latest {% data variables.product.prodname_copilot_short %}-generated change, their approval can count.
You can ask {% data variables.product.prodname_copilot_short %} to make changes by mentioning @copilot in pull request comments, or you can check out {% data variables.product.prodname_copilot_short %}'s branch and make changes yourself.
Tip
We recommend you batch your review comments instead of submitting them individually.
{% data reusables.copilot.coding-agent.write-access-required %}
When {% data variables.product.prodname_copilot_short %} starts a new agent session in response to your comment, an eyes emoji (👀) is added as a reaction to the comment, and a "Copilot has started work" event is added to the pull request timeline.
When {% data variables.product.prodname_copilot_short %} starts a new session on the same pull request, it remembers context from the previous session, allowing it to work faster and more reliably.
For more information, see the section "Use comments to iterate on a pull request" in AUTOTITLE.
Managing {% data variables.product.prodname_actions %} workflow runs
{% data variables.product.prodname_actions %} workflows will not run automatically when {% data variables.product.prodname_copilot_short %} pushes changes to a pull request.
{% data variables.product.prodname_actions %} workflows can be privileged and have access to sensitive secrets. {% data reusables.actions.workflows.inspect-proposed-changes %}
To allow {% data variables.product.prodname_actions %} workflows to run, click the Approve and run workflows button in the pull request's merge box.
Giving feedback on {% data variables.product.prodname_copilot_short %}'s work
You can provide feedback on {% data variables.product.prodname_copilot_short %}'s work using the feedback buttons on {% data variables.product.prodname_copilot_short %}'s pull requests and comments. We use your feedback to improve the product and the quality of {% data variables.product.prodname_copilot_short %}'s solutions.
- On a pull request or comment from {% data variables.product.prodname_copilot_short %}, click the thumbs up (👍) or thumbs down (👎) button.
- If you click the thumbs down button, you're asked to provide additional information. You can, optionally, pick the reason for your negative feedback and leave a comment before clicking Submit feedback.

