Giter VIP home page Giter VIP logo

Comments (7)

catgoose avatar catgoose commented on July 17, 2024 1

Thanks, it works now. I really appreciate that!

Initially I tried gh.nvim, but it cannot create issues. Thanks again :)

from octo.nvim.

pwntester avatar pwntester commented on July 17, 2024

Weird, I thought I replied to this one. My concern was that for correct identification of the aliases, we need to parse the ssh config file which is out of the scope of this plugin. Unless there is a different way Im not familiar with

from octo.nvim.

catgoose avatar catgoose commented on July 17, 2024

Iā€™m not sure why, but gh.nvim and lazygit work fine in directories with aliases. Is there no way to define aliases in the lua setup function?

from octo.nvim.

pwntester avatar pwntester commented on July 17, 2024

Please try bd6af73 and let me know if it works for you

from octo.nvim.

catgoose avatar catgoose commented on July 17, 2024

packer.nvim config:

config = function()
	require("octo").setup({
		ssh_aliases = {
			["github.com-work"] = "github.com",
		},
	})
end,

When issuing :Octo issue create, I receive this error:

Creating issue in work/closing-punchlist. Enter title: test
Do you want to use the content of the current buffer as the body for the new issue?

E5108: Error executing lua Vim:E474: Attempt to decode a blank string
stack traceback:
        [C]: in function 'json_decode'
        ...nvim/site/pack/packer/start/octo.nvim/lua/octo/utils.lua:363: in function 'get_repo_id'
        ...m/site/pack/packer/start/octo.nvim/lua/octo/commands.lua:666: in function 'create_issue'
        ...m/site/pack/packer/start/octo.nvim/lua/octo/commands.lua:23: in function 'a'
        ...m/site/pack/packer/start/octo.nvim/lua/octo/commands.lua:331: in function 'octo'
        [string ":lua"]:1: in main chunk
Press ENTER or type command to continue

also :Octo issue list returns

error connecting to github.com-work
check your internet connection or https://githubstatus.com

gh issue list in that same directory returns issues, however.

from octo.nvim.

pwntester avatar pwntester commented on July 17, 2024

Please try again, user config was not being applied

from octo.nvim.

pwntester avatar pwntester commented on July 17, 2024

Weird, I thought I replied to this one. My concern was that for correct identification of the aliases, we need to parse the ssh config file which is out of the scope of this plugin. Unless there is a different way Im not familiar with

I replied in #295 sorry, I though it was the same issue

from octo.nvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.