Sha256: ce215b6952aa43fd28e085014de669a6b095c5b49f635f47291ce5b15849e71b
Contents?: true
Size: 536 Bytes
Versions: 2
Compression:
Stored size: 536 Bytes
Contents
# frozen_string_literal: true # Wrapper around octokit module Octokit def self.client @client ||= Client.new(access_token: access_token_from_environment) end def self.access_token_from_environment ENV.fetch('GITHUB_TOKEN') do raise <<~MESSAGE Missing environment variable GITHUB_TOKEN. See https://github.com/settings/tokens to set up personal access tokens. Add to the environment: export GITHUB_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX MESSAGE end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unwrappr-0.8.2 | lib/unwrappr/octokit.rb |
unwrappr-0.8.1 | lib/unwrappr/octokit.rb |