This commit is contained in:
moshenglv 2020-12-24 10:38:16 +08:00
commit 2666a95176
1 changed files with 6 additions and 0 deletions

View File

@ -78,4 +78,10 @@ class Ci::Drone::API < Ci::Drone::Request
def sync_repos
post(endpoint, "/api/users/repos", drone_token: drone_token)
end
# Creates a user.
# POST /api/users
def create_user
post(endpoint, "/api/users", {login: options[:login], email: "admin@email.com", avatar_url:"",active:true, drone_token: options[:token]})
end
end