Skip to content

Commit 58f0de9

Browse files
authored
Merge pull request #40972 from github/repo-sync
Repo sync
2 parents a676e3f + 504979b commit 58f0de9

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)