Method: PullReviewComments#editComment
- Defined in:
- lib/github/pullreqs/pullreqs_reviewcomments.rb
#editComment(repo, id, body, user = nil) ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/github/pullreqs/pullreqs_reviewcomments.rb', line 40 def editComment(repo, id, body, user=nil) username = user == nil ? @github.username : user params = { :body => body } data = params.to_json @github.patch('repos/%s/%s/pulls/comments/%s' % [username, repo, id], data) end |