From 034db28c542c04b22147da6722328bc74ff99386 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Fri, 14 Aug 2020 21:58:04 +0700 Subject: replase sparse-checkout by github api --- .../src/codegen/last_commit_that_affected_path.graphql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 xtask/src/codegen/last_commit_that_affected_path.graphql (limited to 'xtask/src/codegen/last_commit_that_affected_path.graphql') 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 @@ +query LastCommitThatAffectedPath($owner: String!, $name: String!, $path: String!) { + repository(owner: $owner, name: $name) { + object(expression: "master") { + __typename + ... on Commit { + history(path: $path, first:1) { + edges { + node { + commitUrl + committedDate + } + } + } + } + } + } +} \ No newline at end of file -- cgit v1.2.3