add: some lose api

This commit is contained in:
viletyy 2022-06-21 17:31:01 +08:00
parent ea2d48fa20
commit 64275e530f
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,10 @@ module Gitea
@http.get("/repos/#{owner}/#{repo}/branches/branches_slice", opt) @http.get("/repos/#{owner}/#{repo}/branches/branches_slice", opt)
end end
def get_repos_branches_branches_slice_by_owner_repo(owner, repo, opt = {})
@http.get("/repos/#{owner}/#{repo}/branches/branches_slice", opt)
end
def get_repos_branches_by_owner_repo_branch(owner, repo, branch, opt = {}) def get_repos_branches_by_owner_repo_branch(owner, repo, branch, opt = {})
@http.get("/repos/#{owner}/#{repo}/branches/#{branch}", opt) @http.get("/repos/#{owner}/#{repo}/branches/#{branch}", opt)
end end