add: delete repo api

This commit is contained in:
viletyy 2024-07-22 16:43:41 +08:00
parent 38f1c0ae0b
commit 3b3777ae2e
3 changed files with 6 additions and 2 deletions

View File

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

View File

@ -3,6 +3,10 @@ module Gitea
module Hat
module Repository
def delete_repos_by_owner_repo(owner, repo, opt = {})
@http.delete("/repos/#{owner}/#{repo}", opt)
end
def get_repos_actions_by_owner_repo(owner, repo, opt = {})
@http.get("/repos/#{owner}/#{repo}/actions", opt)
end

View File

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