Closed benelan closed 4 days ago
I downgraded to gh version 2.51.0
by installing from source, which resolved the issue. So something changed in v2.52.0
that broke this plugin for me.
I tried updating back to v2.52.0
and it works now, not sure what happened. Sorry for the false alarm!
Issue Description
Type: bug report
Describe what happened (or what feature you want)
Octo isn't realizing that I'm authenticated through
gh
. I tried switching betweenssh
andhttps
, which has not effect. I'm usinggithub.com
as my remote, so there shouldn't be any issues there.I am getting a rate limit error when trying to run any Octo commands (e.g.
:Octo pr list
) due to the auth issue:Running
:!gh pr list
does show the list of PRs.Running
:lua print(require("octo.gh").get_user_name())
does not print my username.Running
!gh auth status
shows that I am logged in:I also checked my rate limiting via
gh api /rate_limit
and I'm not at the limit:Describe what you expected to happen
I expect octo.nvim to properly determine that I'm authenticated and find my username.
How to reproduce it (as minimally and precisely as possible)
:Octo pr list
Tell us your environment
Pop!_OS 22.04 LTS x86_64
Swaywm
gh version 2.52.0 (2024-06-24) (installed using these steps)
NVIM v0.10.0 Build type: Release LuaJIT 2.1.1713484068
Anything else we need to know?
Please let me know if there is anything else I can provide to help troubleshoot, since I doubt you can repro on your end.
I found #466 through a comment in the source code but the workaround of setting
vim.g.octo_viewer
didn't work for me.