Merge branch 'cd-v3-parity'
This commit is contained in:
commit
5ef17e7da0
7
lib/travis/api/v3/queries/builds.rb
Normal file
7
lib/travis/api/v3/queries/builds.rb
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
module Travis::API::V3
|
||||||
|
class Queries::Builds < Query
|
||||||
|
def find(repository)
|
||||||
|
repository.builds
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
6
lib/travis/api/v3/renderer/builds.rb
Normal file
6
lib/travis/api/v3/renderer/builds.rb
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
module Travis::API::V3
|
||||||
|
class Renderer::Builds < Renderer::CollectionRenderer
|
||||||
|
type :builds
|
||||||
|
collection_key :builds
|
||||||
|
end
|
||||||
|
end
|
|
@ -28,6 +28,11 @@ module Travis::API::V3
|
||||||
post :create
|
post :create
|
||||||
end
|
end
|
||||||
|
|
||||||
|
resource :builds do
|
||||||
|
route '/builds'
|
||||||
|
get :find
|
||||||
|
end
|
||||||
|
|
||||||
resource :branch do
|
resource :branch do
|
||||||
route '/branch/{branch.name}'
|
route '/branch/{branch.name}'
|
||||||
get :find
|
get :find
|
||||||
|
|
|
@ -5,6 +5,7 @@ module Travis::API::V3
|
||||||
Accounts = Module.new { extend Services }
|
Accounts = Module.new { extend Services }
|
||||||
Branch = Module.new { extend Services }
|
Branch = Module.new { extend Services }
|
||||||
Build = Module.new { extend Services }
|
Build = Module.new { extend Services }
|
||||||
|
Builds = Module.new { extend Services }
|
||||||
Organization = Module.new { extend Services }
|
Organization = Module.new { extend Services }
|
||||||
Organizations = Module.new { extend Services }
|
Organizations = Module.new { extend Services }
|
||||||
Owner = Module.new { extend Services }
|
Owner = Module.new { extend Services }
|
||||||
|
|
7
lib/travis/api/v3/services/builds/find.rb
Normal file
7
lib/travis/api/v3/services/builds/find.rb
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
module Travis::API::V3
|
||||||
|
class Services::Builds::Find < Service
|
||||||
|
def run!
|
||||||
|
find(:builds, find(:repository))
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user