Open History to see the last commit
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.
3query 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}