Files
news.gitea.happylizard.me/bin/gems/octokit-6.1.1/lib/octokit/warnable.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

17 lines
366 B
Ruby

# frozen_string_literal: true
module Octokit
# Allows warnings to be suppressed via environment variable.
module Warnable
module_function
# Wrapper around Kernel#warn to print warnings unless
# OCTOKIT_SILENT is set to true.
#
# @return [nil]
def octokit_warn(*message)
warn message unless ENV['OCTOKIT_SILENT']
end
end
end