jesseduffield / lazygit

simple terminal UI for git commands
MIT License
53.44k stars 1.86k forks source link

Pull Requests for Github Enterprise #1794

Open defung opened 2 years ago

defung commented 2 years ago

Is your feature request related to a problem? Please describe. I see an option for creating a pull request, but when I select it, it gives me an error "Unsupported git service". I believe this is because I'm using Enterprise Github.

Describe the solution you'd like It would be great if lazygit supports pull request creation via enterprise github. The URL path and query string is the same as standard github, only the hostname is different.

Describe alternatives you've considered N/A

Additional context N/A

moha-gh commented 2 years ago

I've gotten this to work for our Enterprise instance via a services entry in the config file, see docs.

In my case (Git and Web URL are identical), it says:

services:
  'github.foo.bar': 'github:github.foo.bar'
JensPfeifle commented 2 years ago

This works for me as well. I think this feature request can be closed.

rwagner00 commented 2 months ago

Verifying that this works for me as well.