|
1 | 1 | ---
|
2 | 2 | title: Asking GitHub Copilot to create a pull request
|
3 | 3 | shortTitle: Create a PR
|
4 |
| -intro: 'You can ask {% data variables.product.prodname_copilot_short %} to create a pull request from the Agents panel or page, {% data variables.copilot.copilot_chat_short %}, or agentic coding tools and IDEs with Model Context Protocol (MCP) support.' |
| 4 | +intro: 'You can ask {% data variables.product.prodname_copilot_short %} to create a pull request from many places, including the Agents panel, {% data variables.copilot.copilot_chat_short %}, and agentic coding tools and IDEs with Model Context Protocol (MCP) support.' |
5 | 5 | product: '{% data reusables.gated-features.copilot-coding-agent %}<br><a href="https://github.com/features/copilot/plans?ref_cta=Copilot+plans+signup&ref_loc=asking+copilot+to+create+a+pull+request&ref_page=docs" 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>'
|
6 | 6 | versions:
|
7 | 7 | feature: copilot
|
@@ -29,6 +29,7 @@ You can ask {% data variables.product.prodname_copilot_short %} to work on a tas
|
29 | 29 | * The Agents page on {% data variables.product.github %}
|
30 | 30 | * {% data variables.copilot.copilot_chat_short %} in {% data variables.product.prodname_vscode %}, {% data variables.product.prodname_vs %}, JetBrains IDEs and {% data variables.product.prodname_dotcom_the_website %}
|
31 | 31 | * Your preferred IDE or agentic coding tool with Model Context Protocol (MCP) support
|
| 32 | +* The Raycast launcher on macOS |
32 | 33 |
|
33 | 34 | {% data variables.product.prodname_copilot_short %} will start working on the task, raise a pull request, then request a review from you when it's finished working. For more information, see [AUTOTITLE](/copilot/using-github-copilot/coding-agent/about-assigning-tasks-to-copilot).
|
34 | 35 |
|
@@ -123,6 +124,26 @@ As an alternative to using {% data variables.copilot.copilot_chat_short %}, you
|
123 | 124 |
|
124 | 125 | {% data variables.product.prodname_copilot_short %} will start a new session, open a draft pull request and work on the task in the background. As it works, it will push changes to the pull request, and once it has finished, it will add you as a reviewer. In most cases, the MCP host will show you the URL of the created pull request.
|
125 | 126 |
|
| 127 | +## Asking {% data variables.product.prodname_copilot_short %} to create a pull request from Raycast |
| 128 | + |
| 129 | +{% data reusables.copilot.coding-agent.raycast-intro %} |
| 130 | + |
| 131 | +{% data reusables.copilot.coding-agent.raycast-setup %} |
| 132 | +1. Open Raycast, search for "{% data variables.product.prodname_copilot_short %}," find the **Create Task** command, then press <kbd>Enter</kbd>. |
| 133 | +1. Click **Sign in with {% data variables.product.github %}**, then complete the authentication flow. Raycast will re-open. |
| 134 | +1. Type a prompt describing what you want {% data variables.product.prodname_copilot_short %} to do. |
| 135 | + |
| 136 | + For example, `Implement a user friendly message for common errors.` |
| 137 | +1. Select the repository you want {% data variables.product.prodname_copilot_short %} to work in. |
| 138 | +1. Optionally, select a base branch for {% data variables.product.prodname_copilot_short %}'s pull request. {% data variables.product.prodname_copilot_short %} will create a new branch based on this branch, then push the changes to a pull request targeting that branch. |
| 139 | +1. Press <kbd>Command</kbd>+<kbd>Enter</kbd> to start the task. |
| 140 | + |
| 141 | + {% data variables.product.prodname_copilot_short %} will start a new session. {% data variables.product.prodname_copilot_short %} will work on the task and push changes to its pull request, then add you as a reviewer when it has finished, triggering a notification. |
| 142 | + |
| 143 | +> [!NOTE] |
| 144 | +> |
| 145 | +> If you are unable to select a specific repository when starting a task, the organization that owns the repository may have enabled {% data variables.product.prodname_oauth_app %} access restrictions. To learn how to request approval for the "{% data variables.product.prodname_copilot %} for Raycast" {% data variables.product.prodname_oauth_app %}, see [AUTOTITLE](/account-and-profile/how-tos/setting-up-and-managing-your-personal-account-on-github/managing-your-membership-in-organizations/requesting-organization-approval-for-oauth-apps). |
| 146 | +
|
126 | 147 | ## Monitoring progress
|
127 | 148 |
|
128 | 149 | You can view your current and past {% data variables.product.prodname_copilot_short %} sessions from the [Agents page](https://github.com/copilot/agents) and {% data variables.product.prodname_vscode %}. See [AUTOTITLE](/copilot/how-tos/agents/copilot-coding-agent/tracking-copilots-sessions).
|
|
0 commit comments