diff options
Diffstat (limited to 'app/assets/javascripts/ci/pipeline_editor/graphql/queries/latest_commit_sha.query.graphql')
-rw-r--r-- | app/assets/javascripts/ci/pipeline_editor/graphql/queries/latest_commit_sha.query.graphql | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/assets/javascripts/ci/pipeline_editor/graphql/queries/latest_commit_sha.query.graphql b/app/assets/javascripts/ci/pipeline_editor/graphql/queries/latest_commit_sha.query.graphql new file mode 100644 index 00000000000..d62fda40237 --- /dev/null +++ b/app/assets/javascripts/ci/pipeline_editor/graphql/queries/latest_commit_sha.query.graphql @@ -0,0 +1,13 @@ +query getLatestCommitSha($projectPath: ID!, $ref: String) { + project(fullPath: $projectPath) { + id + repository { + tree(ref: $ref) { + lastCommit { + id + sha + } + } + } + } +} |