module GithubAPI::Comment

Public Instance Methods

post(content) click to toggle source
# File lib/pghub/github_api/comment.rb, line 8
def post(content)
  connection.post do |req|
    req.url "/repos/#{Pghub.config.github_organization}/#{issue_path}/comments?access_token=#{Pghub.config.github_access_token}"
    req.headers['Content-Type'] = 'application/json'
    req.body = { body: content }.to_json
  end
end