module Gitlab::Client::Commits

def create_commit_comment(project, commit, note, options = {})

Returns:
  • (Gitlab::ObjectifiedHash) - Information about created comment.

Options Hash: (**options)
  • :line_type (String) -- The line type (new or old).
  • :line (Integer) -- The line number.
  • :path (String) -- The file path.

Parameters:
  • options (Hash) -- A customizable set of options.
  • note (String) -- The text of a comment.
  • sha (String) -- The commit hash or name of a repository branch or tag.
  • project (Integer, String) -- The ID or name of a project.
def create_commit_comment(project, commit, note, options = {})
  post("/projects/#{url_encode project}/repository/commits/#{commit}/comments", body: options.merge(note: note))
end