Module: GitHub

Included in:
Whedon::Paper, Whedon::Processor, Whedon::Review, Whedon::Reviews
Defined in:
lib/whedon/github.rb

Overview

How we connect to GitHub.

Constant Summary collapse

MEDIA_TYPE =

Authenticated Octokit TODO remove license preview media type when this ships

"application/vnd.github.drax-preview+json"

Instance Method Summary collapse

Instance Method Details

#clientObject



8
9
10
11
# File 'lib/whedon/github.rb', line 8

def client
  @client ||= Octokit::Client.new(:access_token => ENV['GH_TOKEN'],
                                  :default_media_type => MEDIA_TYPE)
end