Method: Octokit::Client::Gists#create_gist_comment

Defined in:
lib/octokit/client/gists.rb

#create_gist_comment(gist_id, comment, options = {}) ⇒ Sawyer::Resource

Create gist comment

Requires authenticated client.

Examples:

@client.create_gist_comment('3528645', 'This is very helpful.')

Parameters:

  • gist_id (String)

    Id of the gist.

  • comment (String)

    Comment contents.

Returns:

  • (Sawyer::Resource)

    Hash representing the new comment.

See Also:



198
199
200
201
# File 'lib/octokit/client/gists.rb', line 198

def create_gist_comment(gist_id, comment, options = {})
  options = options.merge({ body: comment })
  post "gists/#{gist_id}/comments", options
end