summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/job_artifact_type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/ci/job_artifact_type.rb')
-rw-r--r--app/graphql/types/ci/job_artifact_type.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/graphql/types/ci/job_artifact_type.rb b/app/graphql/types/ci/job_artifact_type.rb
index f80681bcf36..69bb5325dba 100644
--- a/app/graphql/types/ci/job_artifact_type.rb
+++ b/app/graphql/types/ci/job_artifact_type.rb
@@ -12,6 +12,10 @@ module Types
field :file_type, ::Types::Ci::JobArtifactFileTypeEnum, null: true,
description: 'File type of the artifact.'
+ field :name, GraphQL::Types::String, null: true,
+ description: 'File name of the artifact.',
+ method: :filename
+
def download_path
::Gitlab::Routing.url_helpers.download_project_job_artifacts_path(
object.project,