module Github::Repos::Commits

def create_comment(user_name, repo_name, sha, params={})


"position" => 4
"path" => "file1.txt",
"line" => 1,
"commit_id" => "6dcb09b5b57875f334f61aebed695e2e4193db5e",
"body" => "Nice change",
@github.repos.create_comment 'user-name', 'repo-name', 'sha-key',
@github = Github.new
= Examples

* :position - Required number - Line index in the diff to comment on.
* :path - Required string - Relative path of the file to comment on.
* :line - Required number - Line number in the file to comment on.
* :comment_id - Required string - Sha of the commit to comment on.
* :body - Required string.
= Inputs

Creates a commit comment
def create_comment(user_name, repo_name, sha, params={})
  _update_user_repo_params(user_name, repo_name)
  _validate_user_repo_params(user, repo) unless user? && repo?
  _validate_presence_of sha
  _normalize_params_keys(params)
  _filter_params_keys(REQUIRED_COMMENT_PARAMS, params)
  raise ArgumentError, "Expected following inputs to the method: #{REQUIRED_COMMENT_PARAMS.join(', ')}" unless _validate_inputs(REQUIRED_COMMENT_PARAMS, params)
  post("/repos/#{user}/#{repo}/commits/#{sha}/comments", params)
end