summaryrefslogtreecommitdiff
path: root/app/serializers/pipeline_serializer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/pipeline_serializer.rb')
-rw-r--r--app/serializers/pipeline_serializer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/pipeline_serializer.rb b/app/serializers/pipeline_serializer.rb
index 21d49c6c292..bfd6851647f 100644
--- a/app/serializers/pipeline_serializer.rb
+++ b/app/serializers/pipeline_serializer.rb
@@ -60,8 +60,8 @@ class PipelineSerializer < BaseSerializer
},
pending_builds: :project,
project: [:route, { namespace: :route }],
- triggered_by_pipeline: [:project, :user],
- triggered_pipelines: [:project, :user]
+ triggered_by_pipeline: [{ project: [:route, { namespace: :route }] }, :user],
+ triggered_pipelines: [{ project: [:route, { namespace: :route }] }, :user, :source_job]
}
]
end