summaryrefslogtreecommitdiff
path: root/source/features/deep-reblame.gql
blob: 5eb4aafadfa7a6b90600bfeae38ed67e64a1f55b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
query GetPullRequestBlameCommit(
	$owner: String!
	$name: String!
	$file: String!
	$commit: String!
) {
	repository(owner: $owner, name: $name) {
		file: object(expression: $file) {
			id
		}
		object(expression: $commit) {
			... on Commit {
				associatedPullRequests(last: 1) {
					nodes {
						number
						mergeCommit {
							oid
						}
						commits(last: 1) {
							nodes {
								commit {
									oid
								}
							}
						}
					}
				}
			}
		}
	}
}