Class: Gitabu::Api::V3::Commits
- Inherits:
-
Object
- Object
- Gitabu::Api::V3::Commits
- Defined in:
- lib/gitabu/api/v3/commits.rb
Overview
Commits endpoints.
Class Method Summary collapse
- .compare_two_commits(owner: nil, repo: nil, basehead: nil, options: nil) ⇒ Object
- .create_a_commit_comment(owner: nil, repo: nil, commit_sha: nil, body: nil, path: nil, position: nil, line: nil, options: nil) ⇒ Object
- .create_a_commit_status(owner: nil, repo: nil, sha: nil, state: nil, target_url: nil, description: nil, context: nil, options: nil) ⇒ Object
- .delete_a_commit_comment(owner: nil, repo: nil, comment_id: nil, options: nil) ⇒ Object
- .get_a_commit(owner: nil, repo: nil, ref: nil, options: nil) ⇒ Object
- .get_a_commit_comment(owner: nil, repo: nil, comment_id: nil, options: nil) ⇒ Object
- .get_the_combined_status_for_a_specific_reference(owner: nil, repo: nil, ref: nil, options: nil) ⇒ Object
- .list_branches_for_head_commit(owner: nil, repo: nil, commit_sha: nil, options: nil) ⇒ Object
- .list_commit_comments(owner: nil, repo: nil, commit_sha: nil, options: nil) ⇒ Object
- .list_commit_comments_for_a_repository(owner: nil, repo: nil, options: nil) ⇒ Object
- .list_commit_statuses_for_a_reference(owner: nil, repo: nil, ref: nil, options: nil) ⇒ Object
- .list_commits(owner: nil, repo: nil, options: nil) ⇒ Object
- .list_pull_requests_associated_with_a_commit(owner: nil, repo: nil, commit_sha: nil, options: nil) ⇒ Object
- .update_a_commit_comment(owner: nil, repo: nil, comment_id: nil, body: nil, options: nil) ⇒ Object
Class Method Details
.compare_two_commits(owner: nil, repo: nil, basehead: nil, options: nil) ⇒ Object
54 55 56 |
# File 'lib/gitabu/api/v3/commits.rb', line 54 def self.compare_two_commits(owner: nil, repo: nil, basehead: nil, options: nil) new.compare_two_commits(owner, repo, basehead, ) end |
.create_a_commit_comment(owner: nil, repo: nil, commit_sha: nil, body: nil, path: nil, position: nil, line: nil, options: nil) ⇒ Object
78 79 80 |
# File 'lib/gitabu/api/v3/commits.rb', line 78 def self.create_a_commit_comment(owner: nil, repo: nil, commit_sha: nil, body: nil, path: nil, position: nil, line: nil, options: nil) new.create_a_commit_comment(owner, repo, commit_sha, body, path, position, line, ) end |
.create_a_commit_status(owner: nil, repo: nil, sha: nil, state: nil, target_url: nil, description: nil, context: nil, options: nil) ⇒ Object
90 91 92 |
# File 'lib/gitabu/api/v3/commits.rb', line 90 def self.create_a_commit_status(owner: nil, repo: nil, sha: nil, state: nil, target_url: nil, description: nil, context: nil, options: nil) new.create_a_commit_status(owner, repo, sha, state, target_url, description, context, ) end |
.delete_a_commit_comment(owner: nil, repo: nil, comment_id: nil, options: nil) ⇒ Object
70 71 72 |
# File 'lib/gitabu/api/v3/commits.rb', line 70 def self.delete_a_commit_comment(owner: nil, repo: nil, comment_id: nil, options: nil) new.delete_a_commit_comment(owner, repo, comment_id, ) end |
.get_a_commit(owner: nil, repo: nil, ref: nil, options: nil) ⇒ Object
50 51 52 |
# File 'lib/gitabu/api/v3/commits.rb', line 50 def self.get_a_commit(owner: nil, repo: nil, ref: nil, options: nil) new.get_a_commit(owner, repo, ref, ) end |
.get_a_commit_comment(owner: nil, repo: nil, comment_id: nil, options: nil) ⇒ Object
62 63 64 |
# File 'lib/gitabu/api/v3/commits.rb', line 62 def self.get_a_commit_comment(owner: nil, repo: nil, comment_id: nil, options: nil) new.get_a_commit_comment(owner, repo, comment_id, ) end |
.get_the_combined_status_for_a_specific_reference(owner: nil, repo: nil, ref: nil, options: nil) ⇒ Object
82 83 84 |
# File 'lib/gitabu/api/v3/commits.rb', line 82 def self.get_the_combined_status_for_a_specific_reference(owner: nil, repo: nil, ref: nil, options: nil) new.get_the_combined_status_for_a_specific_reference(owner, repo, ref, ) end |
.list_branches_for_head_commit(owner: nil, repo: nil, commit_sha: nil, options: nil) ⇒ Object
42 43 44 |
# File 'lib/gitabu/api/v3/commits.rb', line 42 def self.list_branches_for_head_commit(owner: nil, repo: nil, commit_sha: nil, options: nil) new.list_branches_for_head_commit(owner, repo, commit_sha, ) end |
.list_commit_comments(owner: nil, repo: nil, commit_sha: nil, options: nil) ⇒ Object
74 75 76 |
# File 'lib/gitabu/api/v3/commits.rb', line 74 def self.list_commit_comments(owner: nil, repo: nil, commit_sha: nil, options: nil) new.list_commit_comments(owner, repo, commit_sha, ) end |
.list_commit_comments_for_a_repository(owner: nil, repo: nil, options: nil) ⇒ Object
58 59 60 |
# File 'lib/gitabu/api/v3/commits.rb', line 58 def self.list_commit_comments_for_a_repository(owner: nil, repo: nil, options: nil) new.list_commit_comments_for_a_repository(owner, repo, ) end |
.list_commit_statuses_for_a_reference(owner: nil, repo: nil, ref: nil, options: nil) ⇒ Object
86 87 88 |
# File 'lib/gitabu/api/v3/commits.rb', line 86 def self.list_commit_statuses_for_a_reference(owner: nil, repo: nil, ref: nil, options: nil) new.list_commit_statuses_for_a_reference(owner, repo, ref, ) end |
.list_commits(owner: nil, repo: nil, options: nil) ⇒ Object
38 39 40 |
# File 'lib/gitabu/api/v3/commits.rb', line 38 def self.list_commits(owner: nil, repo: nil, options: nil) new.list_commits(owner, repo, ) end |
.list_pull_requests_associated_with_a_commit(owner: nil, repo: nil, commit_sha: nil, options: nil) ⇒ Object
46 47 48 |
# File 'lib/gitabu/api/v3/commits.rb', line 46 def self.list_pull_requests_associated_with_a_commit(owner: nil, repo: nil, commit_sha: nil, options: nil) new.list_pull_requests_associated_with_a_commit(owner, repo, commit_sha, ) end |
.update_a_commit_comment(owner: nil, repo: nil, comment_id: nil, body: nil, options: nil) ⇒ Object
66 67 68 |
# File 'lib/gitabu/api/v3/commits.rb', line 66 def self.update_a_commit_comment(owner: nil, repo: nil, comment_id: nil, body: nil, options: nil) new.update_a_commit_comment(owner, repo, comment_id, body, ) end |