Error detected while processing BufReadCmd Autocommands for "octo://*":
here is a specific example
:Octo pr edit 97
Error executing Lua callback: vim/_editor.lua:0: nvim_exec2()..BufReadCmd Autocommands for "octo://*": Vim(append):
stack traceback:
[C]: in function 'nvim_exec2'
vim/_editor.lua: in function 'cmd'
...ager/.local/share/nvim/lazy/octo.nvim/lua/octo/utils.lua:581: in function 'get_pull_request'
...r/.local/share/nvim/lazy/octo.nvim/lua/octo/commands.lua:71: in function 'a'
...r/.local/share/nvim/lazy/octo.nvim/lua/octo/commands.lua:377: in function 'octo'
...r/.local/share/nvim/lazy/octo.nvim/lua/octo/commands.lua:18: in function <...r/.local/share/nvim/lazy/octo.nvim/lua/octo/commands.lua:17>
Press ENTER or type command to continue
Investigation
It looks like the match statement for extracting the username does not match output gh.
Issue Description
Type: bug report
Describe what happened (or what feature you want)
When opening any
octo://*
path, I'd seehere is a specific example
Investigation
It looks like the match statement for extracting the username does not match output
gh
.https://github.com/pwntester/octo.nvim/blob/4a60f50bb886572a59fde095b990fa28e2b50dba/lua/octo/gh/init.lua#L59-L60
where the output from
gh
Tell us your environment
octo commit 4a60f50bb886572a59fde095b990fa28e2b50dba (master)
Anything else we need to know?