summaryrefslogtreecommitdiff
path: root/source/features/list-prs-for-file.gql
blob: 46ab24721661fcd7c45705985dc52ebfa2022a5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
query getPrsByFile($owner: String!, $name: String!, $defaultBranch: String!) {
	repository(owner: $owner, name: $name) {
		pullRequests(
			first: 25
			states: OPEN
			baseRefName: $defaultBranch
			orderBy: { field: UPDATED_AT, direction: DESC }
		) {
			nodes {
				number
				files(first: 100) {
					nodes {
						path
					}
				}
			}
		}
	}
}