External pull request url and API type for it (OD-1292)
lolipain opened 3 years 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 3 years ago

    Sadly, i couldn't configure it by my own

  • lolipain commented 3 years 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 3 years ago

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

  • lolipain commented 3 years 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' 3 years ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Question
Priority
Normal
Assignee
Issue Votes (0)
Watchers (4)
Reference
OD-1292
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover