Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 08:54
    zergmk2 starred profclems/glab
  • 02:20
    bradym closed #899
  • 02:19
    bradym commented #899
  • 02:16
    clemsbot labeled #899
  • 02:16
    clemsbot commented #899
  • 00:00
    jorgeborges starred profclems/glab
  • Dec 06 23:25
    Kamori starred profclems/glab
  • Dec 06 20:27
    JohnVillalovos commented #802
  • Dec 06 16:28
    hex-m starred profclems/glab
  • Dec 06 10:58
    ankitpokhrel starred profclems/glab
  • Dec 06 02:12
    clemsbot labeled #901
  • Dec 06 02:12
    clemsbot commented #901
  • Dec 05 22:28
    Jerjer3333333 starred profclems/glab
  • Dec 05 19:00
    efitk starred profclems/glab
  • Dec 05 02:17
    clemsbot labeled #894
  • Dec 05 02:17
    clemsbot commented #894
  • Dec 04 14:08
    profclems unlabeled #887
  • Dec 04 03:44
    mahonzhan starred profclems/glab
  • Dec 04 02:11
    ahillio closed #922
  • Dec 04 02:11
    ahillio commented #922
Clement Sam
@profclems
Thinking about it again, we should go with your first suggestion instead of the multistep
Benjamin Graf
@bgraf
Yes, ok
Benjamin Graf
@bgraf
@profclems how can I retrofit signatures onto my commits, should I rebase&squash them and sign the resulting single commit, then force push my branch on my repository? do you have experience with that case? sorry to have forgotten that requirement :)
Benjamin Graf
@bgraf
ok, that worked out, all commits signed
Clement Sam
@profclems
Ok nice
nlarzon
@nlarzon
Hi, is there anyway I can configure glab to use specific certificates for api calls?
Clement Sam
@profclems
Yes. You can do that in your config file by adding the path to the ca cert using the ca_cert config value.
You can also set with
glab config set ca_cert "/path/to/cert"
nlarzon
@nlarzon
thx
Clement Sam
@profclems
You can also make it host specific
glab config set ca_cert "/path/to/cert" --host gitlab.example.org
nlarzon
@nlarzon
" none of the git remotes configured for this repository points to a known GitLab host. Please use glab config init to configure a new host for glab" Is there a debug command I can use?
Clement Sam
@profclems
You should run glab auth login to authenticate with your GitLab instance
nlarzon
@nlarzon
yes, done that. Still the same issue
Clement Sam
@profclems
Run git remotes -v to see if your repo contains the host you have authenticated with glab.
glab checks to see if the repository points to an authenticated host and uses it
nlarzon
@nlarzon
yes it does
nlarzon
@nlarzon
    gitlab.mydomain.com:
        api_protocol: https
        token: <super-secret>
        git_protocol: ssh
        user: me
        ca_cert: path/client.pem
        ca_cert_key: path/client-key.pem
remote_alias: origin


git remote -v
origin    git@gitlab.mydomain.com:my-group/project/repo.git (fetch)
Clement Sam
@profclems
There's a host mismatch here. You're using gitlab.mydomain.com in glab's config but your host is git.mydomain.com
Update the host in your config to git.mydomain.com
nlarzon
@nlarzon
sorry it is just my anonymization that is wrong
Clement Sam
@profclems
I can't seem to reproduce the error
I'm thinking you should still check. There's probably a host mismatch
Clement Sam
@profclems
@nlarzon kindly open an issue on it if you're still facing this issue
maxice8
@maxice8_gitlab
@profclems yes ?
maxice8
@maxice8_gitlab
What is the blessed way to stub a prompt function so it returns a specified value ? so I can test PickMetadata()
Clement Sam
@profclems

The functions in the prompt package have stub functions for test. Take a look at the mr_create_test where I stubbed the submit confirmation prompt with:

ask, teardown := prompt.InitAskStubber()
    defer teardown()

    ask.Stub([]*prompt.QuestionStub{
        {
            Name:  "confirmation",
            Value: 0,
        },
    })

This selects the first option which is submit

maxice8
@maxice8_gitlab
Hmm, I don't seem to be able to stub a prompt.MultiSelect
Clement Sam
@profclems
I opened a PR to make it easier to stub multiselect #480
Check the comment here: https://github.com/profclems/glab/pull/480#issuecomment-753327499
maxice8
@maxice8_gitlab
Thanks
maxice8
@maxice8_gitlab
resolveNetwork() was a fun function to look at
Clement Sam
@profclems
@maxice8_gitlab I took a closer look at agl and you had some long term plans for it. I took 2 of them which I think we can bring into glab:
  1. Provide TUI to comment on issues
  2. dissect GitLab to allow creating personal access token from the commandline
maxice8
@maxice8_gitlab
I see, the second one would be the best.
kaddkaka
@kaddkaka
Hi :) I just found this tool after getting TOOO annoyed that gitlab webgui is so extremely slow.
What is the current state of glab mr view? it seems to be missing basic stuff
zemzale
@zemzale
Hey. What do you exactly mean by missing basic stuff?
kaddkaka
@kaddkaka
Well probably I just dont know where to look. But when listing comments, is there any way to see the context to which the comment refer?
Also is it possible to reply to a comment and go to the commented code and create a fixup?
Sorry my original question was unnecessarily snarky.
zemzale
@zemzale
I see your point. I would say that its not really the most basic stuff, since we are doing the most baisc stuff, which is displaying the comments just as they come from GitLab API, but if u see a way how we can improve it, open up an issue and we can look at it. Maybe you self can make the improvements, since we are always open for contributions
kaddkaka
@kaddkaka
definitely, Ive never done a patch to a github repo but I would like to. Sometimes at my office we end up with 100+ commit merge requests and comments in the number 300~, and in this case the web gui doesn't cope at all. (for example refusing to show more than 100commits in any way). Unfortuntaley I don't have a good development environment on my winsows machine :s
my WSL has broken internet access which is how I would have liked to solve it
zemzale
@zemzale
I am pretty sure u can devlop glab on windows too, but I really got no idea, since I havent used windows for development in a long time.
kaddkaka
@kaddkaka
yeah I'm just not in the mood to configure windows :p urgh
zemzale
@zemzale
Yeah I feel you
But in any case u can open issues about things that might be improved, if u cant maybe someone else might pick it up
kaddkaka
@kaddkaka
it it possible to let my glab instantiation act as my own local user? I accidentally selected a user that looks like "glab @project_1_bot" but ideally it shouldn't be visible if I create an MR with the gui as my regular user, or with glab from the command line
kaddkaka
@kaddkaka
I redid glab auth login command and now I'm the correct user, not sure what happened last time...
Maximiliano Greco
@mmngreco
Hi everyone! I spent a long time writing an issue using glab in vim, but it failed in the submission process so when this happens there is a way to recover this content?
Clement Sam
@profclems
Hi @mmngreco sorry for the late reply and sorry for facing this issue... Currently there is no way to recover it. There is an open issue to resolve this #472 ... Thanks
Maximiliano Greco
@mmngreco

Hi @mmngreco sorry for the late reply and sorry for facing this issue... Currently there is no way to recover it. There is an open issue to resolve this #472 ... Thanks

To me, there is nothing to sorry about; you are doing a great job with glab! Thank you for point me the issue, I'm tracking it! ;-)

Braswell Kenneth Jr
@braswelljr
Hi @profclems, I have not really worked with GitLab but with this great tool I think it would be fun exploring GitLab.