v3: add sorting to builds
This commit is contained in:
parent
3904d9e362
commit
8a7ff5c6b8
|
@ -3,8 +3,10 @@ module Travis::API::V3
|
|||
params :state, :event_type, :previous_state, prefix: :build
|
||||
params :name, prefix: :branch, method_name: :branch_name
|
||||
|
||||
sortable_by :id, :started_at, :finished_at
|
||||
|
||||
def find(repository)
|
||||
filter(repository.builds)
|
||||
sort filter(repository.builds)
|
||||
end
|
||||
|
||||
def filter(list)
|
||||
|
|
Loading…
Reference in New Issue
Block a user