module Octokit::Client::Issues
def add_comment(repo, number, comment, options = {})
- Example: Add the comment "Almost to v1" to Issue #23 on octokit/octokit.rb -
Other tags:
- See: https://developer.github.com/v3/issues/comments/#create-a-comment -
Returns:
-
(Sawyer::Resource)- Comment
Parameters:
-
comment(String) -- Comment to be added -
number(Integer) -- Issue number -
repo(Integer, String, Repository, Hash) -- A GitHub repository
def add_comment(repo, number, comment, options = {}) post "#{Repository.path repo}/issues/#{number}/comments", options.merge({ body: comment }) end