class LabClient::Commit
Inspect Helper
Public Instance Methods
cherry_pick(branch_name)
click to toggle source
# File lib/labclient/commits/commit.rb, line 18 def cherry_pick(branch_name) # If from List Project ID isn't stored project_id = collect_project_id if project_id.nil? client.commits.cherry_pick(project_id, id, branch_name) end
comment(query)
click to toggle source
# File lib/labclient/commits/commit.rb, line 53 def comment(query) # If from List Project ID isn't stored project_id = collect_project_id if project_id.nil? client.commits.comment_create(project_id, id, query) end
comments()
click to toggle source
# File lib/labclient/commits/commit.rb, line 46 def comments # If from List Project ID isn't stored project_id = collect_project_id if project_id.nil? client.commits.comments(project_id, id) end
diff()
click to toggle source
# File lib/labclient/commits/commit.rb, line 32 def diff # If from List Project ID isn't stored project_id = collect_project_id if project_id.nil? client.commits.diff(project_id, id) end
inspect()
click to toggle source
# File lib/labclient/commits/commit.rb, line 7 def inspect "#<Commit title: #{title}, sha: #{short_id}>" end
merge_requests()
click to toggle source
# File lib/labclient/commits/commit.rb, line 39 def merge_requests # If from List Project ID isn't stored project_id = collect_project_id if project_id.nil? client.commits.merge_requests(project_id, id) end
project()
click to toggle source
# File lib/labclient/commits/commit.rb, line 60 def project # If from List Project ID isn't stored project_id = collect_project_id if project_id.nil? client.projects.show(project_id) end
refs(scope = :all)
click to toggle source
# File lib/labclient/commits/commit.rb, line 11 def refs(scope = :all) # If from List Project ID isn't stored project_id = collect_project_id if project_id.nil? client.commits.refs(project_id, id, scope) end
revert(branch_name)
click to toggle source
# File lib/labclient/commits/commit.rb, line 25 def revert(branch_name) # If from List Project ID isn't stored project_id = collect_project_id if project_id.nil? client.commits.revert(project_id, id, branch_name) end
status(query = {})
click to toggle source
# File lib/labclient/commits/commit.rb, line 71 def status(query = {}) # If from List Project ID isn't stored project_id = collect_project_id if project_id.nil? client.commits.status(project_id, id, query) end
status_update(query = {})
click to toggle source
# File lib/labclient/commits/commit.rb, line 78 def status_update(query = {}) # If from List Project ID isn't stored project_id = collect_project_id if project_id.nil? client.commits.status_update(project_id, id, query) end
web_url()
click to toggle source
# File lib/labclient/commits/commit.rb, line 67 def web_url "#{project.web_url}/-/commit/#{id}" end