You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/copilot/how-tos/github-flow/using-github-copilot-to-create-issues.md
+28-14Lines changed: 28 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,52 +15,62 @@ redirect_from:
15
15
> [!NOTE]
16
16
> This feature is in {% data variables.release-phases.public_preview %} and subject to change.
17
17
18
-
Creating issues manually can be repetitive and time-consuming. With {% data variables.product.prodname_copilot_short %}, you can create issues faster by prompting in natural language, or even by uploading a screenshot. {% data variables.product.prodname_copilot_short %} fills out the title, body, labels, assignees, and more, using your repository’s templates and structure.
18
+
Creating issues manually can be repetitive and time-consuming. With {% data variables.product.prodname_copilot_short %}, you can create issues faster by prompting in natural language, or even by uploading a screenshot. {% data variables.product.prodname_copilot_short %} fills out the title, body, labels, assignees, and more, using your repository’s issue forms or templates.
19
19
20
-
You stay in control: review and refine what {% data variables.product.prodname_copilot_short %} suggests, or make changes directly in the issue form.
20
+
You stay in control of the process. You can review and refine what {% data variables.product.prodname_copilot_short %} suggests before you submit the new issue.
21
21
22
22
## Creating an issue with {% data variables.product.prodname_copilot_short %}
23
23
24
24
You can create issues from {% data variables.copilot.copilot_chat_short %}'s immersive view.
25
25
26
26
1. Go to the immersive view of {% data variables.copilot.copilot_chat_short %} ([https://github.com/copilot](https://github.com/copilot)).
27
-
1.At the bottom of the page, in the "Ask {% data variables.product.prodname_copilot_short %}" box, describe what you want to file. Specify the repository you would like to create your issue in using the org/repository format. If you do not specify a repository, {% data variables.product.prodname_copilot_short %} will infer the repository based on the repository you last created an issue in. You can try:
27
+
1.In the prompt box, describe the issue you want to create.
28
28
29
-
* "Create a feature request to add fuzzy matching to search."
30
-
* "Log a bug for a 500 error when submitting the login form."
31
-
* "Create a task and add a label for ‘needs design review’."
29
+
If you contribute issues to multiple repositories, use the `organization/repository` format to specify the target repository for this issue. If you don't specify a repository, {% data variables.product.prodname_copilot_short %} will infer the repository based on the repository you last created an issue in.
30
+
31
+
For example:
32
+
33
+
*`In octo-org/octo-repo, create a feature request to add fuzzy matching to search.`
34
+
*`Log a bug for a 500 error. This happens consistently when I try to log into the site.`
35
+
*`Create a task to change the application logo background to red and add the label "needs design review".`
32
36
33
37
> [!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.
34
38
35
-
1.Or, you can use one of the following methods to include an image in your prompt:
39
+
1.Alternatively, you can use one of the following methods to include an image in your prompt:
36
40
37
41
* Copy an image and paste it into the prompt box at the bottom of the page.
38
42
* Click {% octicon "paperclip" aria-label="Add attachment" %} in the prompt box, then click **Image**. Browse to the image file you want to attach, select it and click **Open**.
39
43
* Drag and drop an image file from your operating system's file explorer into the prompt box.
40
44
41
-
After you paste or upload the image, you can add text to your prompt, for example: "Create an issue because this error appears when trying to reset a password."
45
+
After you paste or upload the image, you can add text to your prompt, for example: `Create an issue because this error appears when trying to reset a password.`
42
46
43
-
1. {% data variables.product.prodname_copilot_short %} will draft an issue that includes:
47
+
1. {% data variables.product.prodname_copilot_short %} drafts an issue that includes:
44
48
45
49
* A suggested title.
46
-
* A formatted body (based on your repository’s template)
50
+
* Details of the required changes.
51
+
52
+
If your repository has issue forms or templates, {% data variables.product.prodname_copilot_short %} will choose an appropriate form or template based on your prompt. If there are no forms or templates, {% data variables.product.prodname_copilot_short %} will create a basic issue body for the details of the issue.
47
53
48
-
Based on your prompt, {% data variables.product.prodname_copilot_short %} will also suggest metadata such as labels, assignee, and issue type.
54
+
If {% data variables.product.prodname_copilot_short %} uses an issue form, it will break up the information in your prompt into the relevant fields of the form, without losing any data. {% data variables.product.prodname_copilot_short %} will ask you to provide additional context if there are fields it does not have enough information to fill out.
55
+
56
+
Based on your prompt, {% data variables.product.prodname_copilot_short %} can also suggest metadata such as labels, assignees, and issue type.
49
57
50
58
1. Review the draft. You can:
51
59
52
60
* Edit any part of the issue manually.
61
+
* Choose a different issue form or template without losing your input. {% data variables.product.prodname_copilot_short %} reformats the content according to the form or template you choose.
53
62
* Ask {% data variables.product.prodname_copilot_short %} to make changes with a follow-up prompt.
54
-
* Switch templates without losing your input.
55
63
56
64
1. Once the issue looks good, click **Create**.
57
65
58
-
{% data variables.product.prodname_copilot_short %} tailors its suggestions based on the repository where you're creating the issue. It selects the most relevant template for your prompt and applies associated metadata, like labels or issue type. If you choose a different template, {% data variables.product.prodname_copilot_short %} automatically reformats the content to match the new structure.
59
-
60
66
## Creating multiple issues at once
61
67
62
68
If your prompt includes multiple tasks or bugs, {% data variables.product.prodname_copilot_short %} can draft more than one issue at a time.
63
69
70
+
For example:
71
+
72
+
`In octo-org/octo-repo, create 3 issues: 1) DETAILS OF ONE TASK, 2) DETAILS OF ANOTHER TASK, 3) DETAILS OF A THIRD TASK`
73
+
64
74
Each draft appears separately, and you can review and edit them individually. To publish the issues, click **Create** on each one you want to submit.
65
75
66
76
## Assigning issues to {% data variables.product.prodname_copilot_short %}
@@ -73,3 +83,7 @@ You can assign the issue during creation in one of two ways:
73
83
***Manually:** Select "{% data variables.product.prodname_copilot_short %}" from the assignee list.
74
84
75
85
Once the issue is assigned and created, {% data variables.product.prodname_copilot_short %} will start working on it automatically. You’ll see a 👀 emoji reaction on the issue to indicate that {% data variables.product.prodname_copilot_short %} is working on it.
0 commit comments