class Github::Repos::Comments

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


"position" => 4
"path" => "file1.txt",
"line" => 1,
"commit_id" => "6dcb09b5b57875f334f61aebed695e2e4193db5e",
"body" => "Nice change",
github.repos.comments.create '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(user_name, repo_name, sha, params={})
  set :user => user_name, :repo => repo_name
  assert_presence_of user, repo, sha
  normalize! params
  filter! VALID_COMMENT_OPTIONS, params
  assert_required_keys(REQUIRED_COMMENT_OPTIONS, params)
  post_request("/repos/#{user}/#{repo}/commits/#{sha}/comments", params)
end