Skip to content

Enterprise ssh url#1

Open
Kuzat wants to merge 2 commits intovincent178:masterfrom
Kuzat:enterprise-ssh-url
Open

Enterprise ssh url#1
Kuzat wants to merge 2 commits intovincent178:masterfrom
Kuzat:enterprise-ssh-url

Conversation

@Kuzat
Copy link
Copy Markdown

@Kuzat Kuzat commented Sep 25, 2023

No description provided.

@vincent178 vincent178 self-requested a review December 13, 2023 01:25
@vincent178
Copy link
Copy Markdown
Owner

Hey @Kuzat , sorry not being responsive for a long time, I refactored some of the code to make it easier to maintain and extend the usage like this, and I also add the tests support, would you mind update your PR to apply this, I could also update on your behalf if you're ok with this.

'https://github.com/\\3/\\4', '')
local raw_repo_url = vim.fn.systemlist("git config --get remote." ..
vim.g.nvim_github_linker_default_remote .. ".url")[1]
local repo_url = raw_repo_url:gsub(':', '/'):gsub('git@', 'https://'):gsub('%.git', '')
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we might not need this, it is supported by the long substitute string match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants