diff --git a/lib/ci/api/entities.rb b/lib/ci/api/entities.rb index b25e0e573a8..255217b1a7c 100644 --- a/lib/ci/api/entities.rb +++ b/lib/ci/api/entities.rb @@ -56,7 +56,7 @@ module Ci class TriggerRequest < Grape::Entity expose :id, :variables - expose :commit, using: Commit + expose :trigger, using: Commit, as: :commit end end end