Module: Bucketkit::Client::Commits
- Included in:
- Bucketkit::Client
- Defined in:
- lib/bucketkit/client/commits.rb
Overview
Constant Summary collapse
- API_ENDPOINT =
'api/2.0/repositories'.freeze
Instance Method Summary collapse
- #approve_commit(repo, revision, options = {}) ⇒ Object
- #commit(repo, revision, options = {}) ⇒ Object
- #commit_comment(repo, revision, comment_id, options = {}) ⇒ Object
- #commit_comments(repo, revision, options = {}) ⇒ Object
- #commits(repo, options = {}) ⇒ Object
- #delete_commit_approval(repo, revision, options = {}) ⇒ Object
Instance Method Details
#approve_commit(repo, revision, options = {}) ⇒ Object
23 24 25 |
# File 'lib/bucketkit/client/commits.rb', line 23 def approve_commit(repo, revision, ={}) post "#{API_ENDPOINT}/#{Repository.new(repo)}/commit/#{revision}/approve", end |
#commit(repo, revision, options = {}) ⇒ Object
11 12 13 |
# File 'lib/bucketkit/client/commits.rb', line 11 def commit(repo, revision, ={}) get "#{API_ENDPOINT}/#{Repository.new(repo)}/commit/#{revision}", end |
#commit_comment(repo, revision, comment_id, options = {}) ⇒ Object
19 20 21 |
# File 'lib/bucketkit/client/commits.rb', line 19 def commit_comment(repo, revision, comment_id, ={}) get "#{API_ENDPOINT}/#{Repository.new(repo)}/commit/#{revision}/comments/#{comment_id}", end |
#commit_comments(repo, revision, options = {}) ⇒ Object
15 16 17 |
# File 'lib/bucketkit/client/commits.rb', line 15 def commit_comments(repo, revision, ={}) get "#{API_ENDPOINT}/#{Repository.new(repo)}/commit/#{revision}/comments", end |
#commits(repo, options = {}) ⇒ Object
7 8 9 |
# File 'lib/bucketkit/client/commits.rb', line 7 def commits(repo, ={}) paginate "#{API_ENDPOINT}/#{Repository.new(repo)}/commits", end |
#delete_commit_approval(repo, revision, options = {}) ⇒ Object
27 28 29 |
# File 'lib/bucketkit/client/commits.rb', line 27 def delete_commit_approval(repo, revision, ={}) delete "#{API_ENDPOINT}/#{Repository.new(repo)}/commit/#{revision}/approve", end |