The best way to control Claude Code, Codex and more from any computer or phone

main
graphql 13 lines 517 Bytes
Raw
1 # Whether the viewer can push to one stack layer's head branch. `GraphQLResolver.aliased` repeats
2 # it under an alias per layer, so a stack's layers are checked in one request.
3 query PullRequestBranchAccess($owner: String!, $name: String!, $number: Int!) {
4 repository(owner: $owner, name: $name) {
5 pullRequest(number: $number) {
6 headRepository {
7 viewerPermission
8 }
9 # A fork's branch is writable without repository access when its owner allows it.
10 maintainerCanModify
11 }
12 }
13 }