Add support for GH enterprise
xEtherealx opened this issue Β· comments
Russell Brennan commented
I'm guessing the below failure is due to lack of support for self-hosted gh instances; it would be great to get support here but if there's a workaround please lmk!
β― spr init
π Welcome to spr!
π Okay, lets get started. First we need a 'Personal Access Token' from GitHub. This will authorise
spr to open/update/merge Pull Requests etc. on behalf of your GitHub user.
You can get one by going to https://github.com/settings/tokens and clicking on 'Generate new
token'. The token needs the 'repo', 'user' and 'read:org' permissions, so please tick those two
boxes in the 'Select scopes' section.
You might want to set the 'Expiration' to 'No expiration', as otherwise you will have to repeat
this procedure soon. Even if the token does not expire, you can always revoke it in case you fear
someone got hold of it.
Please paste in your PAT and press enter. (The input will not be displayed.)
GitHub Personal Access Token: [hidden]
π GitHub: Bad credentials
Documentation URL: https://docs.github.com/rest
Jakub Kawalec commented
+1 it would be great to be able to specify or override the gh instance spr
is talking to. But a workaround would be great too as this tool is super exciting!
Andy Hamon commented
Would like to +1 this, wanted to check this out but we use GitHub enterprise on prem as well.
Andy Hamon commented
Submitted a PR for GHE support in #158