#1292  External pull request url and API type for it
Closed
lolipain opened 1 year ago

Hi, i will glad to know if there's anyone who using Lazygit's pull request creation with OneDev git server

By default it fails as "Unsupported Git Service" when i'm trying to create pull request directly from lazygit with remote specified as onedev server. But from their documentation there's option for configure new git services

lazygit/Config.md

services:
  '<gitDomain>': '<provider>:<webDomain>'

Where:

gitDomain stands for the domain used by git itself (i.e. the one present on clone URLs), e.g. git.work.com

provider is one of github, bitbucket, bitbucketServer, azuredevops or gitlab

webDomain is the URL where your git service exposes a web interface and APIs, e.g. gitservice.work.com


I guess that for my case gitDomain and webDomain will be the same, but provider field choosing gets me

While waiting for response i'll try all of them and report in comments the results, but if nothing of that works i hope that somebody who already using it will answer me ??

lolipain commented 1 year ago

Sadly, i couldn't configure it by my own

lolipain commented 1 year ago

For future interested in that people - if answer would not founded, here's some custom solution

config.yml

customCommands:                                                                                                                                                                                                       
  - key: 'o'                                                                                                                                                                                                          
    command: 'www-browser {{index .SelectedRemote.Urls 0}}/~pulls/new'                                                                                                                                                
    context: 'localBranches'                                                                                                                                                                                                                 
Robin Shen commented 1 year ago

lazygit does not support OneDev out of box. Glad to see you've worked it around with custom commands.

lolipain commented 1 year ago

lazygit does not support OneDev out of box. Glad to see you've worked it around with custom commands.

yes, i know, but i wondered if there's any api url pr methods collisions with an api of supported services, but as far i could test - no =(

lolipain changed state to 'Closed' 1 year ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
onedev/server#1292
Please wait...
Page is in error, reload to recover