Method: Octokit::Client::Gists#update_gist_comment

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

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

Update gist comment

Requires authenticated client

Examples:

@client.update_gist_comment('208sdaz3', '3528645', ':heart:')

Parameters:

  • gist_id (String)

    Id of the gist.

  • gist_comment_id (Integer)

    Id of the gist comment to update.

  • comment (String)

    Updated comment contents.

Returns:

  • (Sawyer::Resource)

    Hash representing the updated comment.

See Also:



214
215
216
217
# File 'lib/octokit/client/gists.rb', line 214

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