Merge pull request #3817 from MikeMcQuaid/gist-logs-require-credentials
gist-logs: require API credentials.
This commit is contained in:
commit
c216eff44f
@ -39,15 +39,6 @@ module Homebrew
|
|||||||
files["00.tap.out"] = { content: tap }
|
files["00.tap.out"] = { content: tap }
|
||||||
end
|
end
|
||||||
|
|
||||||
# Description formatted to work well as page title when viewing gist
|
|
||||||
if f.core_formula?
|
|
||||||
descr = "#{f.name} on #{OS_VERSION} - Homebrew build logs"
|
|
||||||
else
|
|
||||||
descr = "#{f.name} (#{f.full_name}) on #{OS_VERSION} - Homebrew build logs"
|
|
||||||
end
|
|
||||||
url = create_gist(files, descr)
|
|
||||||
|
|
||||||
if ARGV.include?("--new-issue") || ARGV.switch?("n")
|
|
||||||
if GitHub.api_credentials_type == :none
|
if GitHub.api_credentials_type == :none
|
||||||
puts <<~EOS
|
puts <<~EOS
|
||||||
You can create a new personal access token:
|
You can create a new personal access token:
|
||||||
@ -58,6 +49,15 @@ module Homebrew
|
|||||||
login!
|
login!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Description formatted to work well as page title when viewing gist
|
||||||
|
if f.core_formula?
|
||||||
|
descr = "#{f.name} on #{OS_VERSION} - Homebrew build logs"
|
||||||
|
else
|
||||||
|
descr = "#{f.name} (#{f.full_name}) on #{OS_VERSION} - Homebrew build logs"
|
||||||
|
end
|
||||||
|
url = create_gist(files, descr)
|
||||||
|
|
||||||
|
if ARGV.include?("--new-issue") || ARGV.switch?("n")
|
||||||
url = create_issue(f.tap, "#{f.name} failed to build on #{MacOS.full_version}", url)
|
url = create_issue(f.tap, "#{f.name} failed to build on #{MacOS.full_version}", url)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user