module Octokit::Client::Issues
def update_comment(repo, number, comment, options = {})
- Example: Update the comment #1194549 with body "I've started this on my 25-issue-comments-v3 fork" on an issue on octokit/octokit.rb -
Other tags:
- See: https://developer.github.com/v3/issues/comments/#edit-a-comment -
Returns:
-
(Sawyer::Resource)- Comment
Parameters:
-
comment(String) -- Body of the comment which will replace the existing body. -
number(Integer) -- Comment number -
repo(Integer, String, Repository, Hash) -- A GitHub repository
def update_comment(repo, number, comment, options = {}) patch "#{Repository.path repo}/issues/comments/#{number}", options.merge({ body: comment }) end