Skip to content

Commit 6876b86

Browse files
stevewardvgrlhellojanehere
authored
Create issues with Copilot in Slack (#59393)
Co-authored-by: Vanessa <vgrl@github.com> Co-authored-by: Jane <hellojanehere@github.com>
1 parent 73eef41 commit 6876b86

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

content/copilot/how-tos/use-copilot-agents/coding-agent/integrate-coding-agent-with-slack.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ The {% data variables.copilot.copilot_coding_agent %} integration in Slack allow
1919

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

22-
> [!NOTE]
23-
> When you mention `@{% data variables.product.github %}` in a Slack thread, the agent will capture the entire thread as context for your request, understanding and implementing solutions based on the discussion. This context is stored in the pull request. If you want to limit the context, you can send a direct message to the {% data variables.product.prodname_github_app %} for Slack instead.
22+
## Security considerations
23+
24+
When you @mention {% data variables.product.prodname_copilot_short %} in Slack, consider the following.
25+
26+
* {% data variables.product.prodname_copilot_short %} may perform write actions on your behalf, such as creating pull requests or issues, in addition to answering questions. {% data variables.product.prodname_copilot_short %} uses the permissions of your linked {% data variables.product.github %} account for any actions it takes.
27+
* {% data variables.copilot.copilot_coding_agent %} will capture the entire thread as context for your request, understanding and implementing solutions based on the discussion. This context is stored in the pull request. If you want to limit the context, you can send a direct message to the {% data variables.product.prodname_github_app %} for Slack instead.
2428

2529
## Prerequisites
2630

@@ -55,6 +59,38 @@ Users can invoke {% data variables.copilot.copilot_coding_agent %} on any reposi
5559
5660
1. {% data variables.copilot.copilot_coding_agent %} will initiate a {% data variables.copilot.copilot_coding_agent_short %} session and, once the coding agent has finished, respond with a summary of the changes it plans to make and a link to the pull request it has created in the default repository.
5761

62+
### Creating an issue with {% data variables.product.prodname_copilot_short %}
63+
64+
You can ask {% data variables.product.prodname_copilot_short %} to draft {% data variables.product.github %} issues directly from Slack, turning conversations into actionable tasks. When you mention {% data variables.product.prodname_copilot_short %}, it uses the full thread history as context for the issue it drafts. To keep the context focused, consider starting a new thread or sending a direct message.
65+
66+
1. In Slack, ask {% data variables.product.prodname_copilot_short %} to create an issue, specifying the target repository.
67+
68+
For example:
69+
70+
```text
71+
@{% data variables.product.github %} In octo-org/octo-repo, create a feature request to add fuzzy matching to search.
72+
```
73+
74+
```text
75+
@{% data variables.product.github %} Log a bug for a 500 error in octo-org/octo-repo and assign @USER to it. This happens consistently when I try to log into the site.
76+
```
77+
78+
```text
79+
@{% data variables.product.github %} In octo-org/octo-repo, create an issue and add relevant code snippets to improve the API response format.
80+
```
81+
82+
> [!NOTE] You can only use {% data variables.product.prodname_copilot_short %} to create issues in repositories where you already have permission to create issues. This feature doesn't change your access or bypass repository permissions.
83+
84+
1. Click **Review draft** to open the issue draft. {% data variables.product.prodname_copilot_short %} drafts an issue that includes:
85+
86+
* A suggested title.
87+
* Details of the required changes.
88+
89+
Based on your prompt, {% data variables.product.prodname_copilot_short %} can also suggest metadata such as labels, assignees, and issue type.
90+
91+
1. Review the draft, and once the issue looks good, click **Create**.
92+
93+
5894
## Further reading
5995

6096
* [AUTOTITLE](/copilot/concepts/agents/coding-agent/about-coding-agent) - Learn more about {% data variables.copilot.copilot_coding_agent %} and how it can support you.

0 commit comments

Comments
 (0)