Skip to content

Commit 504979b

Browse files
LisaKrCopilotsubatoi
authored
[CCA cross-repo assign] update docs (#58110)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Ben Ahmady <32935794+subatoi@users.noreply.github.com>
1 parent 9f485ec commit 504979b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

content/copilot/how-tos/use-copilot-agents/coding-agent/create-a-pr.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ You can assign issues to {% data variables.product.prodname_copilot_short %} usi
111111
#### Creating and assigning a new issue
112112

113113
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.
114+
115+
> [!NOTE]
116+
> If using a {% data variables.product.pat_v2 %}, it needs the following permissions to assign {% data variables.product.prodname_copilot_short %} to an issue:
117+
> * Read access to metadata
118+
> * Read and write access to actions, contents, issues and pull requests
119+
>
120+
> If using a {% data variables.product.pat_v1 %}, it needs the `repo` scope to assign {% data variables.product.prodname_copilot_short %} to an issue.
121+
114122
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.
115123

116124
```graphql copy

0 commit comments

Comments
 (0)