fix: add some api

This commit is contained in:
viletyy 2022-07-15 11:53:52 +08:00
parent 64275e530f
commit bdc52229c5
1 changed files with 8 additions and 0 deletions

View File

@ -29,6 +29,10 @@ module Gitea
@http.get("/repos/#{owner}/#{repo}/assignees", opt)
end
def get_repos_blame_by_owner_repo(owner, repo, opt = {})
@http.get("/repos/#{owner}/#{repo}/blame", opt)
end
def get_repos_branch_name_set_by_owner_repo(owner, repo, opt = {})
@http.get("/repos/#{owner}/#{repo}/branch_name_set", opt)
end
@ -113,6 +117,10 @@ module Gitea
@http.get("/repos/#{owner}/#{repo}/contents", opt)
end
def post_repos_contents_batch_by_owner_repo(owner, repo, opt = {})
@http.post("/repos/#{owner}/#{repo}/contents/batch", opt)
end
def get_repos_contents_by_owner_repo_filepath(owner, repo, filepath, opt = {})
@http.get("/repos/#{owner}/#{repo}/contents/#{filepath}", opt)
end