summaryrefslogtreecommitdiff
path: root/source/features/comments-time-machine-links.gql
blob: a4e4b495f55e20e8982254b2a95fd7c51ce877b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
query GetCommitAtDate(
	$owner: String!
	$name: String!
	$branch: String!
	$date: GitTimestamp!
) {
	repository(owner: $owner, name: $name) {
		ref(qualifiedName: $branch) {
			target {
				... on Commit {
					history(first: 1, until: $date) {
						nodes {
							oid
						}
					}
				}
			}
		}
	}
}