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