Module: GithubAPI::Comment
Instance Method Summary collapse
Methods included from Connection
Instance Method Details
#post(content) ⇒ Object
8 9 10 11 12 13 14 |
# 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 |