seachicken / gh-poi

✨ Safely clean up your local branches
https://dev.to/seachicken/safely-clean-up-your-local-branches-9i3
MIT License
685 stars 19 forks source link

How to use with local github on non-standard http port? #99

Closed uyriq closed 1 year ago

uyriq commented 1 year ago

https://github.com/seachicken/gh-poi/blob/a2a845b80dfef7251b62fcb50589fd84e99049ed/conn/command.go#L13

gh poi -debug
2023/03/26 17:15:46 [1.060508ms] run git [remote -v] -> origin  git@mylocalgitbox.local:uyriq/my-local.git (fetch)
origin  git@mylocalgitbox:uyriq/my-local.git (push)

2023/03/26 17:15:46 [5.152972ms] run ssh [-T -G mylocalgitbox.local] -> *****
2023/03/26 17:15:46 [13.030318ms] run gh [repo view mylocalgitbox.local/user/my-local --json owner,name,parent,defaultBranchRef --jq .] -> 
✕ Fetching pull requests...
failed to run external command: gh, args: [repo view mylocalgitbox.local/user/my-local  --json owner,name,parent,defaultBranchRef --jq .]
exit status 1

this is due the fact that mylocalgitbox.local not run on 80 port but on 8080

seachicken commented 1 year ago

Hello, I have a few questions.

uyriq commented 1 year ago

gh repo view mylocalgitbox.local:8080/uyriq/my-local-project Post "https://mylocalgitbox.local:8080/api/graphql": http: server gave HTTP response to HTTPS client due depend on gh api, seems this won't work?

seachicken commented 1 year ago

Perhaps the error message appears to be related to the Docker configuration rather than the tool. https://stackoverflow.com/questions/49674004/docker-repository-server-gave-http-response-to-https-client

seachicken commented 1 year ago

No response, so I will close it. Please open it if you have any additional information.