add :jobs to build payload
This commit is contained in:
parent
6b0850813c
commit
98bcc9e530
|
@ -3,6 +3,6 @@ require 'travis/api/v3/renderer/model_renderer'
|
||||||
module Travis::API::V3
|
module Travis::API::V3
|
||||||
class Renderer::Build < Renderer::ModelRenderer
|
class Renderer::Build < Renderer::ModelRenderer
|
||||||
representation(:minimal, :id, :number, :state, :duration, :event_type, :previous_state, :started_at, :finished_at)
|
representation(:minimal, :id, :number, :state, :duration, :event_type, :previous_state, :started_at, :finished_at)
|
||||||
representation(:standard, *representations[:minimal], :repository, :branch, :commit)
|
representation(:standard, *representations[:minimal], :repository, :branch, :commit, :jobs)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
10
lib/travis/api/v3/renderer/job.rb
Normal file
10
lib/travis/api/v3/renderer/job.rb
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
require 'travis/api/v3/renderer/model_renderer'
|
||||||
|
|
||||||
|
module Travis::API::V3
|
||||||
|
class Renderer::Job < Renderer::ModelRenderer
|
||||||
|
# # representation(:minimal, :id, :number, :state, :queue, :type, :started_at, :finished_at)
|
||||||
|
# representation(:minimal, :id)
|
||||||
|
# # representation(:standard, *representations[:minimal], :repository_id, :commit_id, :source_type, source_id)
|
||||||
|
# representation(:standard, *representations[:minimal])
|
||||||
|
end
|
||||||
|
end
|
6
lib/travis/api/v3/renderer/jobs.rb
Normal file
6
lib/travis/api/v3/renderer/jobs.rb
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
module Travis::API::V3
|
||||||
|
class Renderer::Jobs < Renderer::CollectionRenderer
|
||||||
|
type :jobs
|
||||||
|
collection_key :jobs
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user