Sha256: b03cc4d6f0561955760003a5dff09837da93f78205f9d208cfad0d6c8af129d3
Contents?: true
Size: 625 Bytes
Versions: 2
Compression:
Stored size: 625 Bytes
Contents
# frozen_string_literal: true module Codeowners module Cli # Checks and prints deprecation warnings. module Warner class << self def check_warnings check_github_env end def warn(msg) puts "[WARNING] #{msg}" end protected def check_github_env return if ENV['GITHUB_ORGANIZATION'].nil? || ENV['GITHUB_ORGANIZATION'].empty? warn 'Usage of GITHUB_ORGANIZATION ENV variable has been deprecated.'\ 'Run `codeowners-checker config organization #{organization}` instead.' end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
codeowners-checker-1.1.2 | lib/codeowners/cli/warner.rb |
codeowners-checker-1.1.1 | lib/codeowners/cli/warner.rb |