module Gish

Constants

VERSION

Public Class Methods

client() click to toggle source
# File lib/gish.rb, line 19
def self.client
  @github ||= Octokit::Client.new(:access_token => Gish.access_token)
end
request(resource='issue/comment/label') { || ... } click to toggle source
# File lib/gish.rb, line 23
def self.request(resource='issue/comment/label')
  begin
    yield()
  rescue Octokit::NotFound
    puts "Could not find #{resource}."
    exit 1
  rescue Octokit::Unauthorized
    puts "Something is wrong with your personal access token."
    exit 1
  end
end