diff options
author | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-08-17 10:09:42 +0200 |
---|---|---|
committer | Z.J. van de Weg <zegerjan@gitlab.com> | 2016-08-18 16:56:39 +0200 |
commit | de7b8e51b8b7b5bfaa72ee62a4eb08497cf69b4b (patch) | |
tree | 06009695cc0888c2bf7e5cf112f241031fcd3206 /lib/api/entities.rb | |
parent | ac73de508e21af95b473bfafc2ca2543b234430d (diff) | |
download | gitlab-ce-de7b8e51b8b7b5bfaa72ee62a4eb08497cf69b4b.tar.gz |
Add endpoints for pipelines
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 055716ab1e3..09c9aca1e22 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -502,6 +502,14 @@ module API expose :key, :value end + class Pipeline < Grape::Entity + expose :status, :ref, :sha, :before_sha, :tag, :yaml_errors + + expose :user, with: Entities::UserBasic + expose :created_at, :updated_at, :started_at, :finished_at, :committed_at + expose :duration + end + class Environment < Grape::Entity expose :id, :name, :external_url end |