fix: lose collaborators edit api

This commit is contained in:
viletyy 2022-06-21 17:33:49 +08:00
parent ea69f224b4
commit ac7c2088fd
3 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
PATH
remote: .
specs:
gitea-client (0.4.0)
gitea-client (0.5.0)
rest-client (~> 2.1.0)
GEM

View File

@ -69,6 +69,10 @@ module Gitea
@http.get("/repos/#{owner}/#{repo}/collaborators/#{collaborator}", opt)
end
def put_repos_collaborators_by_owner_repo_collaborator(owner, repo, collaborator, opt = {})
@http.put("/repos/#{owner}/#{repo}/collaborators/#{collaborator}", opt)
end
def delete_repos_collaborators_by_owner_repo_collaborator(owner, repo, collaborator, opt = {})
@http.delete("/repos/#{owner}/#{repo}/collaborators/#{collaborator}", opt)
end

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true
module Gitea
VERSION = "0.4.0"
VERSION = "0.5.0"
end