travis-api/lib/travis/api/v3/services/settings/update.rb
Renée Hendricksen b94d9c8637 use the new method
2016-07-07 00:31:35 -04:00

11 lines
307 B
Ruby

module Travis::API::V3
class Services::Settings::Update < Service
params :builds_only_with_travis_yml, :build_pushes, :build_pull_requests, :maximum_number_of_builds, prefix: :settings
def run!
repository = check_login_and_find(:repository)
query.update(repository)
end
end
end