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/agents/copilot-coding-agent/using-copilot-to-work-on-an-issue.md
+64-4Lines changed: 64 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,10 +62,70 @@ You can also assign issues to {% data variables.product.prodname_copilot_short %
62
62
63
63
### Assigning an issue to {% data variables.product.prodname_copilot_short %} via the {% data variables.product.github %} API
64
64
65
-
You can assign an issue to {% data variables.product.prodname_copilot_short %} by making a request to the GraphQL API.
65
+
You can assign issues to {% data variables.product.prodname_copilot_short %} using the GraphQL API.
66
+
67
+
#### Creating and assigning a new issue
68
+
69
+
1. Make sure you're authenticating with the API using a user token, for example a {% data variables.product.pat_generic %} or a {% data variables.product.prodname_github_app %} user-to-server token.
70
+
1. Verify that {% data variables.copilot.copilot_coding_agent %} is enabled in the repository by checking if the repository's `suggestedActors` in the GraphQL API includes {% data variables.product.prodname_copilot_short %}. Replace `octo-org` with the repository owner, and `octo-repo` with the repository name.
If {% datavariables.copilot.copilot_coding_agent %} isenabledfortheuserandintherepository, thefirstnodereturnedfromthequerywillhavethe `login` value `copilot-swe-agent`.
94
+
95
+
1. Makeanoteofthe `id` valueofthislogin.
96
+
97
+
1. FetchtheGraphQLglobalIDoftherepositoryyouwanttocreatetheissuein, replacing `octo-org` withtherepositoryowner, and `octo-repo` withtherepositoryname.
1. Verify that {% data variables.copilot.copilot_coding_agent %} is enabled in the repository by checking if the repository's `suggestedActors` in the GraphQL API includes {% data variables.product.prodname_copilot_short %}. Replace `monalisa` with the repository owner, and `octocat` with the name.
0 commit comments