diff --git a/Gemfile.lock b/Gemfile.lock index 95b7cb9..3e1f587 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - gitea-client (0.9.1) + gitea-client (0.9.2) rest-client (~> 2.1.0) GEM diff --git a/lib/gitea/api/repository.rb b/lib/gitea/api/repository.rb index 6625971..f15b939 100644 --- a/lib/gitea/api/repository.rb +++ b/lib/gitea/api/repository.rb @@ -101,6 +101,10 @@ module Gitea @http.get("/repos/#{owner}/#{repo}/commits", opt) end + def get_repos_commits_diff_by_owner_repo(owner, repo, opt = {}) + @http.get("/repos/#{owner}/#{repo}/commits/diff", opt) + end + def get_repos_commits_status_by_owner_repo_ref(owner, repo, ref, opt = {}) @http.get("/repos/#{owner}/#{repo}/commits/#{ref}/status", opt) end diff --git a/lib/gitea/version.rb b/lib/gitea/version.rb index e4511da..8f0bcb5 100644 --- a/lib/gitea/version.rb +++ b/lib/gitea/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Gitea - VERSION = "0.9.1" + VERSION = "0.9.2" end