Skip to content

Commit f9fa1ae

Browse files
authored
fix: batches now supports fine-grained pat (#1247)
We recently added official support for fine-grained access tokens. The previously linked limitation doesn't seem to exist anymore (at least I can't find it in the docs). ## Pull Request approval You will need to get your PR approved by at least one member of the Sourcegraph team. For reviews of docs formatting, styles, and component usage, please tag the docs team via the #docs Slack channel.
1 parent f284e90 commit f9fa1ae

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

docs/admin/code_hosts/github.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,15 +261,11 @@ Fine-grained tokens can access public repositories, but can only access the priv
261261

262262
When creating your fine-grained access token, select the following permissions depending on the purpose of the token:
263263

264-
| Feature | Required token permissions |
264+
| Feature | Required token permissions |
265265
| ----------------------------------------------------- | ------------------------------------------------------ |
266266
| [Sync private repositories](#private-repositories) | `Repository permissions: Contents - Access: Read-only` |
267267
| [Sync repository permissions][permissions] | `Repository permissions: Contents - Access: Read-only` |
268-
| [Batch changes][batch-changes] | `Unsupported` |
269-
270-
271-
272-
> WARNING: Fine-grained tokens don't support the `repositoryQuery` code host connection option or batch changes. Both of these features rely on GitHub's GraphQL API, which is [unsupported by fine-grained access tokens](https://docs.github.com/en/graphql/guides/forming-calls-with-graphql#authenticating-with-graphql).
268+
| [Batch changes][batch-changes] | `Repository permissions: Contents: Read and write, Metadata: Read-only, Pull requests: Read and write, Workflows: Read and write` |
273269

274270
### Private repositories
275271

0 commit comments

Comments
 (0)