debian-mirror-gitlab/lib/api/entities/deployment.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
364 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
module API
module Entities
class Deployment < Grape::Entity
expose :id, :iid, :ref, :sha, :created_at, :updated_at
expose :user, using: Entities::UserBasic
expose :environment, using: Entities::EnvironmentBasic
2020-10-24 23:57:45 +05:30
expose :deployable, using: Entities::Ci::Job
2020-03-13 15:44:24 +05:30
expose :status
end
end
end