gitlab-org--gitlab-foss/app/serializers/trigger_variable_entity.rb
Steve Azzopardi 1b388c798b
Add trigger information for job API
Create new entity called TriggerVariablesEnitity for trigger variables,
to aid reuseablity in the future.

Update JSON schema to include trigger information in the response.

Refactor rspec tests a bit to reduce duplication and for the `context`
to make sense.

closes https://gitlab.com/gitlab-org/gitlab-ce/issues/50989
2018-09-12 11:00:39 +02:00

7 lines
140 B
Ruby

# frozen_string_literal: true
class TriggerVariableEntity < Grape::Entity
include RequestAwareEntity
expose :key, :value, :public
end