fix: lose collaborators edit api
This commit is contained in:
parent
ea69f224b4
commit
ac7c2088fd
|
@ -1,7 +1,7 @@
|
||||||
PATH
|
PATH
|
||||||
remote: .
|
remote: .
|
||||||
specs:
|
specs:
|
||||||
gitea-client (0.4.0)
|
gitea-client (0.5.0)
|
||||||
rest-client (~> 2.1.0)
|
rest-client (~> 2.1.0)
|
||||||
|
|
||||||
GEM
|
GEM
|
||||||
|
|
|
@ -69,6 +69,10 @@ module Gitea
|
||||||
@http.get("/repos/#{owner}/#{repo}/collaborators/#{collaborator}", opt)
|
@http.get("/repos/#{owner}/#{repo}/collaborators/#{collaborator}", opt)
|
||||||
end
|
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 = {})
|
def delete_repos_collaborators_by_owner_repo_collaborator(owner, repo, collaborator, opt = {})
|
||||||
@http.delete("/repos/#{owner}/#{repo}/collaborators/#{collaborator}", opt)
|
@http.delete("/repos/#{owner}/#{repo}/collaborators/#{collaborator}", opt)
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Gitea
|
module Gitea
|
||||||
VERSION = "0.4.0"
|
VERSION = "0.5.0"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue