Sha256: b3a8cf3a0e03edc3e07f90ff89a12616b21e2aa948e6e752a1dd69a834f2a9b0
Contents?: true
Size: 628 Bytes
Versions: 1
Compression:
Stored size: 628 Bytes
Contents
# frozen_string_literal: true module DroneCI module UserAPI # https://docs.drone.io/api/user/user_builds/ def user_builds api.get('user/builds') end # https://docs.drone.io/api/user/user_info/ def user_info api.get('user') end # https://docs.drone.io/api/user/user_repos/ def user_repos(latest: nil) api.get('user/repos') do |request| { latest: latest }.compact.each do |key, value| request.params[key] = value end end end # https://docs.drone.io/api/user/user_sync/ def user_sync api.post('user/repos') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
drone-ci-0.1.0 | lib/drone-ci/api/user.rb |