Closed Kinrany closed 10 months ago
Try the first approach: create a token at https://github.com/settings/tokens and set the GITHUB_TOKEN environment variable. No github cli needed.
You mean, place the token in an env variable instead of ~/.config/hub
?
Yes, exactly. I have the GITHUB_TOKEN env set with the token value exported in my bashrc.
That works, thank you!
Had to ask because it was surprising based on the help message that the two would work differently. I'm guessing this is because ~/.config/hub
is being read by a third-party library.
Closed because there's no bug or anything, but please feel free to reopen/edit the OP if you still need it!
Is spr usable without
gh
?The first error I got from
git spr -h
wasI created
~/.config/hub
with a new token. But the next invocation ofgit spr -h
complains thathosts.yml
doesn't exist:So do other commands, and all of them seem to work other than this warning.
Overall, it's not clear where
gh
falls on the spectrum between a strict requirement and a small convenience.