pwntester / octo.nvim

Edit and review GitHub issues and pull requests from the comfort of your favorite editor
MIT License
2.34k stars 127 forks source link

Allow gh to use GITHUB_TOKEN env var for auth #235

Closed cwndrws closed 2 years ago

cwndrws commented 2 years ago

Issue Description

Type: feature request

Describe what happened (or what feature you want)

It would be really nice if octo could use the GITHUB_TOKEN env var to authenticate. I ran into this while trying to use octo in a codespace. In a codespace, GITHUB_TOKEN is set so that tools that consume it , gh for example, work out of the box. It surprised me to see the, message about having to auth with gh auth login since gh was working fine with the env var set.

Describe what you expected to happen

I expect octo to work the same as gh in that it allows me to auth with the GITHUB_TOKEN env var.