Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #53: Issue and PR autocomplete not working in Octo files #61

Merged
merged 2 commits into from
Dec 29, 2023

Conversation

GitMurf
Copy link
Contributor

@GitMurf GitMurf commented Dec 29, 2023

Let me know if you have any questions. I don't have any Lua experience but seems pretty straight forward.

The issue seems to be that this commit 7b292e1 was pushed to account for GH Enterprise URLs, but Octo default settings leaves this config item (github_hostname) empty by default. I added a fallback of github.com if it is empty.

image

Additionally Octo just made a change to their API so had to replace get_config() with values... see here: pwntester/octo.nvim@b537100

ref: #53

- Seems to be caused by the Octo filetype
- See petertriho#53
Finally figured out the source of the problem. This commit 7b292e1 was pushed to account for GH Enterprise but Octo default settings leaves this blank. This fix accounts for that as well.

ref: petertriho#53
@GitMurf GitMurf changed the title fix https://github.com/petertriho/cmp-git/issues/53 Issue and PR autocomplete not working in Octo files fix #53 Issue and PR autocomplete not working in Octo files Dec 29, 2023
@GitMurf GitMurf changed the title fix #53 Issue and PR autocomplete not working in Octo files fix #53: Issue and PR autocomplete not working in Octo files Dec 29, 2023
@petertriho
Copy link
Owner

Thanks for the PR. LGTM

@petertriho petertriho merged commit 8d89936 into petertriho:main Dec 29, 2023
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