Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 19:36
    IvonaldoAmaral starred profclems/glab
  • 19:33
    x3ro commented #929
  • 19:32
    x3ro ready_for_review #929
  • 19:32
    GitLab | clemsbot pushed 13 commits to glab
  • 19:31
    codecov[bot] commented #929
  • 19:31
    x3ro synchronize #929
  • 16:04
    zemzale commented #943
  • 16:02
    sebademasi10 commented #943
  • 15:39
    zemzale commented #943
  • 15:37
    zemzale commented #943
  • 13:08
    gaowei-space starred profclems/glab
  • 10:01
  • 03:23
    matty-rose starred profclems/glab
  • 02:44
    xiaohuirong starred profclems/glab
  • 02:25
    profclems labeled #879
  • 02:24
    profclems commented #879
  • 02:24
    profclems commented #879
  • 02:14
    profclems closed #908
  • 02:14
    profclems commented #908
  • 02:14
    GitLab | Clement Sam pushed 1 commits to glab
Clement Sam
@profclems
Haha... great
Benjamin Graf
@bgraf
@profclems I submitted a pull-request for further discussion
Clement Sam
@profclems
Yeah... I'm taking a look
Clement Sam
@profclems

How to deal with new labels when prompting via multi select?

This is worth considering...

There should be a better workaround to handle this 🤔
Benjamin Graf
@bgraf
well, maybe it would be sufficient to say that users need to use the -l options to do that then? I guess the number of times you want to add an existing label largely outnumbers the times you'd want to add a new one?
another option is to have multiple steps, i.e.: first the multiselect, then the old prompt to "add" more labels to it.. hm
Clement Sam
@profclems

well, maybe it would be sufficient to say that users need to use the -l options to do that then? I guess the number of times you want to add an existing label largely outnumbers the times you'd want to add a new one?

Yeah the multistep seems fine but the user should ask for it using a flag. I think the -l should be fine

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