Skip to content

Commit af6dbd1

Browse files
[2025-07-23] Customize the base branch when delegating a task to Copilot coding agent from the Agents page (#56761)
Co-authored-by: John Clement <[email protected]>
1 parent 6ef49a3 commit af6dbd1

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
13.6 KB
Loading

content/copilot/how-tos/agents/copilot-coding-agent/asking-copilot-to-create-a-pull-request.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,15 @@ You can ask {% data variables.product.prodname_copilot_short %} to work on a tas
3535
You can also reach this page by clicking the **{% octicon "copilot" aria-label="Copilot icon" %}** button next to the search bar on any page on {% data variables.product.github %}, then selecting **Agents** from the sidebar.
3636

3737
1. Using the dropdown menu in the prompt field, select the repository you want {% data variables.product.prodname_copilot_short %} to work in.
38+
3839
1. Type a prompt describing your request.
3940

4041
For example, `Implement a user friendly message for common errors.`
4142

4243
![Screenshot of asking Copilot to create a pull request from the Agents page.](/assets/images/help/copilot/coding-agent/agents-page-input.png)
4344

45+
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 its changes to a pull request targeting that branch.
46+
4447
1. Click the **Send now** button or press <kbd>Return</kbd>.
4548

4649
{% data variables.product.prodname_copilot_short %} will start a new session, which will appear in the list below the prompt box. {% 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.

content/copilot/how-tos/agents/copilot-coding-agent/tracking-copilots-sessions.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ You can see a list of your running and past agent sessions on the Agents page at
3535

3636
You can also reach this page by clicking the **{% octicon "copilot" aria-label="Copilot icon" %}** button next to the search bar on any page on {% data variables.product.github %}, then selecting **Agents** from the sidebar.
3737

38-
![Screenshot of the Agents page with several sessions, including one currently in progress.](/assets/images/help/copilot/coding-agent/agents-page.png)
39-
4038
For each session listed below the prompt field, you can see its status at a glance, or click on it to navigate to the linked pull request.
4139

4240
To view the session logs, click through to the pull request in the list, then find the "{% data variables.product.prodname_copilot_short %} started work..." event in the timeline, and then click **View session**.

0 commit comments

Comments
 (0)