Clarify HOMEBREW_GITHUB_API_TOKEN in gist-logs err

This commit is contained in:
JBallin 2018-10-12 15:26:35 -07:00
parent 9bcb1d5b01
commit 2a1b936f76
2 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@ module Homebrew
puts <<~EOS puts <<~EOS
You can create a new personal access token: You can create a new personal access token:
#{GitHub::ALL_SCOPES_URL} #{GitHub::ALL_SCOPES_URL}
and then set the new HOMEBREW_GITHUB_API_TOKEN as the authentication method. #{Utils::Shell.set_variable_in_profile("HOMEBREW_GITHUB_API_TOKEN", "your_token_here")}
EOS EOS
login! login!

View File

@ -33,7 +33,7 @@ module GitHub
GitHub API Error: #{github_message} GitHub API Error: #{github_message}
Try again in #{pretty_ratelimit_reset(reset)}, or create a personal access token: Try again in #{pretty_ratelimit_reset(reset)}, or create a personal access token:
#{ALL_SCOPES_URL} #{ALL_SCOPES_URL}
and then set the token as: export HOMEBREW_GITHUB_API_TOKEN="your_new_token" #{Utils::Shell.set_variable_in_profile("HOMEBREW_GITHUB_API_TOKEN", "your_token_here")}
EOS EOS
end end
@ -58,7 +58,7 @@ module GitHub
printf "protocol=https\\nhost=github.com\\n" | git credential-osxkeychain erase printf "protocol=https\\nhost=github.com\\n" | git credential-osxkeychain erase
Or create a personal access token: Or create a personal access token:
#{ALL_SCOPES_URL} #{ALL_SCOPES_URL}
and then set the token as: export HOMEBREW_GITHUB_API_TOKEN="your_new_token" #{Utils::Shell.set_variable_in_profile("HOMEBREW_GITHUB_API_TOKEN", "your_token_here")}
EOS EOS
end end
super message super message
@ -124,7 +124,7 @@ module GitHub
Scopes they need: #{needed_human_scopes} Scopes they need: #{needed_human_scopes}
Scopes they have: #{credentials_scopes} Scopes they have: #{credentials_scopes}
Create a personal access token: #{ALL_SCOPES_URL} Create a personal access token: #{ALL_SCOPES_URL}
and then set HOMEBREW_GITHUB_API_TOKEN as the authentication method instead. #{Utils::Shell.set_variable_in_profile("HOMEBREW_GITHUB_API_TOKEN", "your_token_here")}
EOS EOS
when :environment when :environment
onoe <<~EOS onoe <<~EOS
@ -132,7 +132,7 @@ module GitHub
Scopes they need: #{needed_human_scopes} Scopes they need: #{needed_human_scopes}
Scopes it has: #{credentials_scopes} Scopes it has: #{credentials_scopes}
Create a new personal access token: #{ALL_SCOPES_URL} Create a new personal access token: #{ALL_SCOPES_URL}
and then set the new HOMEBREW_GITHUB_API_TOKEN as the authentication method instead. #{Utils::Shell.set_variable_in_profile("HOMEBREW_GITHUB_API_TOKEN", "your_token_here")}
EOS EOS
end end
end end