diff options
Diffstat (limited to 'xtask/src/codegen/last_commit_that_affected_path.graphql')
-rw-r--r-- | xtask/src/codegen/last_commit_that_affected_path.graphql | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/xtask/src/codegen/last_commit_that_affected_path.graphql b/xtask/src/codegen/last_commit_that_affected_path.graphql new file mode 100644 index 000000000..8b256f392 --- /dev/null +++ b/xtask/src/codegen/last_commit_that_affected_path.graphql | |||
@@ -0,0 +1,17 @@ | |||
1 | query LastCommitThatAffectedPath($owner: String!, $name: String!, $path: String!) { | ||
2 | repository(owner: $owner, name: $name) { | ||
3 | object(expression: "master") { | ||
4 | __typename | ||
5 | ... on Commit { | ||
6 | history(path: $path, first:1) { | ||
7 | edges { | ||
8 | node { | ||
9 | commitUrl | ||
10 | committedDate | ||
11 | } | ||
12 | } | ||
13 | } | ||
14 | } | ||
15 | } | ||
16 | } | ||
17 | } \ No newline at end of file | ||