summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-03-05 20:58:08 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2017-03-05 20:58:08 +0100
commit140b51ce980bc519f3478bf4321dfd4a35d6bd3c (patch)
tree79b212a3e5e05b9e87acdd2ef04c3beaf5236d78 /lib/api/entities.rb
parentab972295bc0ec6db90ae451904a867788d66f49d (diff)
downloadgitlab-ce-140b51ce980bc519f3478bf4321dfd4a35d6bd3c.tar.gz
Introduce tests for pipeline triggers
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 82d05d85ead..c0c94044ced 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -639,7 +639,9 @@ module API
end
class Trigger < Grape::Entity
- expose :token, :created_at, :updated_at, :deleted_at, :last_used
+ expose :token, :description
+ expose :created_at, :updated_at, :deleted_at, :last_used
+ expose :owner, using: Entities::UserBasic
end
class Variable < Grape::Entity