mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
调用drone创建用户接口
This commit is contained in:
@@ -78,5 +78,11 @@ 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: options[:email], avatar_url:options[:avatar_url],active:true, drone_token: options[:token]})
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user