pwntester / octo.nvim

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

Add gh token to env vars passed to gh to allow for token auth #236

Closed cwndrws closed 2 years ago

cwndrws commented 2 years ago

Describe what this PR does / why we need it

Allows the GITHUB_TOKEN env var to be sent through to gh when making calls out to it. This allows octo to work out of the box in environments where GITHUB_TOKEN is automatically set (Codespaces, for example).

Does this pull request fix one issue?

Fixes https://github.com/pwntester/octo.nvim/issues/235

Describe how you did it

I added GITHUB_TOKEN to list of environment variables that gets passed to the job that calls out to gh

Describe how to verify it

I ran my version of octo in a codespace where GITHUB_TOKEN was set and it worked.

Special notes for reviews

pwntester commented 2 years ago

Cool, thanks a lot!