618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
|
# File 'lib/hu/deploy.rb', line 618
def ci_info
puts
if ENV['HU_GITHUB_ACCESS_TOKEN'].nil?
msg = "ERROR: Environment variable 'HU_GITHUB_ACCESS_TOKEN' must be set."
else
msg = 'ERROR: Github access token is invalid or has insufficient permissions'
end
puts msg.color(:red)
puts <<EOF
1. Go to \e[1mhttps://github.com/settings/tokens\e[0m
2. Click on [Generate new token]
3. Create a token with (only) the following permissions:
- repo:status
- repo_deployment
- public_repo
- read:user
4. Add the following line to your shell environment (e.g. ~/.bash_profile):
\e[1mexport HU_GITHUB_ACCESS_TOKEN=<your_token>\e[0m
EOF
end
|