Skip to content

Commit 4f731f6

Browse files
authored
Merge pull request #45268 from github/repo-sync
Repo sync
2 parents a9c56b9 + bb1e2bd commit 4f731f6

1 file changed

Lines changed: 54 additions & 11 deletions

File tree

content/copilot/how-tos/use-copilot-agents/cloud-agent/integrate-cloud-agent-with-linear.md

Lines changed: 54 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Integrating Copilot cloud agent with Linear
33
shortTitle: Integrate cloud agent with Linear
44
allowTitleToDifferFromFilename: true
5-
intro: 'Use the {% data variables.product.prodname_copilot_short %} integration in Linear to provide context and open pull requests, all from within your Linear workspace.'
5+
intro: 'Use the {% data variables.product.prodname_copilot_short %} integration in Linear to provide context, customize how the agent runs, and open pull requests, all from within your Linear workspace.'
66
product: '{% data reusables.copilot.plans.permission-paid-plans-cfi %}'
77
versions:
88
feature: copilot
@@ -14,15 +14,14 @@ redirect_from:
1414
---
1515

1616
> [!NOTE]
17-
> * This feature is currently in {% data variables.release-phases.public_preview %} and subject to change.
18-
> * {% data variables.product.prodname_copilot %} uses AI. Check for mistakes. See [AUTOTITLE](/copilot/responsible-use/agents).
17+
> {% data variables.product.prodname_copilot %} uses AI. Check for mistakes. See [AUTOTITLE](/copilot/responsible-use/copilot-cloud-agent).
1918
20-
The {% data variables.product.prodname_copilot_short %} integration in Linear allows you to invoke {% data variables.copilot.copilot_cloud_agent %} without leaving your Linear workspace. From within a Linear issue you can initiate {% data variables.copilot.copilot_cloud_agent_short %} sessions and open pull requests, using the context of your issue description and comments.
19+
The {% data variables.product.prodname_copilot_short %} integration in Linear allows you to invoke {% data variables.copilot.copilot_cloud_agent %} without leaving your Linear workspace. From within a Linear issue you can initiate {% data variables.copilot.copilot_cloud_agent_short %} sessions, customize which model, custom agent, or branches the agent uses, steer a session, and open pull requests, all using the context of your issue description and comments.
2120

2221
For information about additional {% data variables.product.prodname_copilot_short %} integrations, see [AUTOTITLE](/copilot/concepts/tools/about-copilot-integrations).
2322

2423
> [!NOTE]
25-
> When you mention @{% data variables.product.github %} in, or assign {% data variables.product.prodname_copilot_short %} to, a Linear issue, the agent will capture the entire issue description and comments as context for your request. This helps the agent to understand the issue, and implement an appropriate solution, based on all of the information in the issue. This context is stored in the pull request.
24+
> When you mention @{% data variables.product.github %} in, or assign {% data variables.product.prodname_copilot_short %} to, a Linear issue, the agent captures the entire issue description and comments as context for your request. This helps the agent to understand the issue and implement an appropriate solution, based on all of the information in the issue. This context is stored in the pull request.
2625
2726
## Prerequisites
2827

@@ -31,7 +30,9 @@ For information about additional {% data variables.product.prodname_copilot_shor
3130

3231
## Installing the {% data variables.product.prodname_copilot_short %} app in Linear
3332

34-
> [!NOTE] In order to install the {% data variables.product.prodname_copilot_short %} app in Linear, be an owner of the organization or enterprise where you want to install the app. You must also be a workspace admin in Linear.
33+
> [!NOTE]
34+
> * To install the {% data variables.product.prodname_copilot_short %} app in Linear, you must be an owner of the organization or enterprise where you want to install the app. You must also be a workspace administrator in Linear.
35+
> * If your organization is part of an enterprise that uses {% data variables.enterprise.data_residency %}, install the integration from the list of apps available to your enterprise at `SUBDOMAIN.ghe.com/apps/external-app/github-copilot-for-linear`. Replace SUBDOMAIN with your enterprise's subdomain of {% data variables.enterprise.data_residency_site %}.
3536
3637
The {% data variables.product.prodname_copilot_short %} app only needs to be installed once in an organization. After the app is installed, any member of the organization can connect their {% data variables.product.prodname_copilot_short %} account to the app and start using it.
3738

@@ -40,14 +41,56 @@ The {% data variables.product.prodname_copilot_short %} app only needs to be ins
4041

4142
## Using the {% data variables.product.prodname_copilot_short %} app in Linear
4243

43-
The first time you use the {% data variables.product.prodname_copilot_short %} app in Linear, you will need to connect it to your {% data variables.product.github %} account. You will also need to specify a repository for {% data variables.copilot.copilot_cloud_agent %} to use. Only users with **write** access to the specified repository can trigger {% data variables.copilot.copilot_cloud_agent %} to work in that repository. Contributors to the issue without repository **write** access can help guide {% data variables.product.prodname_copilot_short %} by providing input to the issue conversation, which will be used as context when creating the pull request.
44+
The first time you use the {% data variables.product.prodname_copilot_short %} app in Linear, you must connect it to your {% data variables.product.github %} account. You must also specify a repository for {% data variables.copilot.copilot_cloud_agent %} to use. Only users with **write** access to the specified repository can trigger {% data variables.copilot.copilot_cloud_agent %} to work in that repository. Contributors to the issue without repository **write** access can help guide {% data variables.product.prodname_copilot_short %} by providing input to the issue conversation, which is used as context when creating the pull request.
4445

4546
1. In Linear, create an issue where you want to use {% data variables.copilot.copilot_cloud_agent %}.
4647
1. Click the **Assign** dropdown, then select **{% data variables.product.prodname_copilot %}**.
47-
1. If you haven't yet specified a repository for {% data variables.copilot.copilot_cloud_agent %} to use, you will be prompted to do so now. This is where {% data variables.copilot.copilot_cloud_agent %} will open the pull request related to this issue.
48-
1. If this is your first time using the app, you will be prompted to sign in to your {% data variables.product.github %} account and authorize the app. Follow the prompts to complete the authorization.
49-
1. In the "Links" section of your Linear issue, you will now see a linked "[WIP]" pull request created by {% data variables.copilot.copilot_cloud_agent %}. Click the link to view the pull request on {% data variables.product.github %}.
50-
1. Once {% data variables.copilot.copilot_cloud_agent %} has finished working on the pull request, a notification will be added to the "Activity" section of your Linear issue.
48+
1. If you haven't yet specified a repository for {% data variables.copilot.copilot_cloud_agent %} to use, you are prompted to do so now. This is where {% data variables.copilot.copilot_cloud_agent %} opens the pull request related to this issue.
49+
1. If this is your first time using the app, you are prompted to sign in to your {% data variables.product.github %} account and authorize the app. Follow the prompts to complete the authorization.
50+
1. In the "Links" section of your Linear issue, you will see a linked "[WIP]" pull request created by {% data variables.copilot.copilot_cloud_agent %}. Click the link to view the pull request on {% data variables.product.github %}.
51+
1. Once {% data variables.copilot.copilot_cloud_agent %} has finished working on the pull request, a notification is added to the "Activity" section of your Linear issue.
52+
53+
## Customizing {% data variables.copilot.copilot_cloud_agent %} in Linear
54+
55+
You can customize how {% data variables.copilot.copilot_cloud_agent %} runs in Linear, either per issue or across your entire workspace by using Linear's agent guidance. Recurring preferences such as a default repository, a preferred model, or branch conventions are best set once with [Linear agent guidance](#using-linear-agent-guidance).
56+
57+
### Using Linear agent guidance
58+
59+
Linear's agent guidance is a prompt that you set at the workspace or team level. Linear automatically passes this guidance to {% data variables.copilot.copilot_cloud_agent %} every time you trigger it.
60+
61+
Common uses for agent guidance include:
62+
63+
* Specifying a default repository to open pull requests against.
64+
* Specifying a preferred model.
65+
* Specifying a custom agent to use.
66+
* Defining branch-naming conventions or a default base branch.
67+
68+
For more information about Linear's agent guidance, see [Guiding agents](https://linear.app/docs/agents-in-linear#guiding-agents) in the Linear documentation.
69+
70+
### Choosing a model
71+
72+
When you trigger {% data variables.copilot.copilot_cloud_agent %} from a Linear issue you can choose which model {% data variables.product.prodname_copilot_short %} uses by specifying the model in the issue description. For more information, see [AUTOTITLE](/copilot/how-tos/use-copilot-agents/cloud-agent/changing-the-ai-model).
73+
74+
To set a default model for every run in your workspace or team, add it to your agent guidance. See [Using Linear agent guidance](#using-linear-agent-guidance).
75+
76+
### Using a custom agent
77+
78+
You can have {% data variables.copilot.copilot_cloud_agent %} use a custom agent from your {% data variables.product.github %} repository when it opens a pull request from Linear by specifying which agent to use in the issue description. For more information, see [AUTOTITLE](/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/create-custom-agents).
79+
80+
To always use the same custom agent across your workspace or team, specify it in your agent guidance. See [Using Linear agent guidance](#using-linear-agent-guidance).
81+
82+
### Setting the base branch and working branch
83+
84+
When {% data variables.copilot.copilot_cloud_agent %} opens a pull request from a Linear issue, you can choose:
85+
86+
* The **base branch** the pull request targets.
87+
* The **working branch** name {% data variables.copilot.copilot_cloud_agent %} uses for its commits.
88+
89+
To apply the same base branch or branch-naming convention across every run, add it to your agent guidance. See [Using Linear agent guidance](#using-linear-agent-guidance).
90+
91+
### Steering a session
92+
93+
After you trigger {% data variables.copilot.copilot_cloud_agent %} from a Linear issue, you can continue to direct the agent. To do this, mention `@{% data variables.product.prodname_copilot %}` in a comment on the Linear issue with additional instructions, or input additional instructions in the agent chat panel.
5194

5295
## Further reading
5396

0 commit comments

Comments
 (0)