Giter VIP home page Giter VIP logo

Comments (12)

hacknlove avatar hacknlove commented on June 9, 2024 3

I think I have the same problem.

$ lab mr -b newchat -t develop -m "improved search" -v
Verbose option used. Detailed logging information will be emitted.



Getting base branch information

Getting base branch name : 
Argument provided : newchat
Base branch name obtained : newchat

Getting remote of branch : newchat
Executing git config branch.newchat.remote
Remote obtained : origin


Getting URL of remote : origin
Executing  git config remote.origin.url
URL of remote obtained : [email protected]:roadstr-team/backend.git


gitlab host obtained : gitlab.com

Project name derived from host : roadstr-team/backend

Getting gitlab project info for : roadstr-team/backend
Couldn't create merge request
Cannot read property 'green' of undefined
$ tail .git/config 
[gitlab]
        url = https://gitlab.com
        token = [edited]

from gitlab-cli.

lukefan6 avatar lukefan6 commented on June 9, 2024 2

Same issue here, version 2.0.9 won't work, but 2.0.7 is okay

from gitlab-cli.

BrOrlandi avatar BrOrlandi commented on June 9, 2024 1

I'm also having this problem. But it started after I upgraded from version 2.0.7 to 2.0.9.
Now I have installed version 2.0.7 and it's working.

It should be something caused by changes between those two versions. @vishwanatharondekar could you check it?

I can check it later and made a PR if I found anything.

from gitlab-cli.

vishwanatharondekar avatar vishwanatharondekar commented on June 9, 2024

Possible for you to use -v option and post the verbose log output here after sanitising it.

from gitlab-cli.

delanym avatar delanym commented on June 9, 2024

lab merge-request -v -t master

Verbose option used. Detailed logging information will be emitted.



Getting base branch information

Getting base branch name : 
Executing git rev-parse --abbrev-ref HEAD
Base branch name obtained : test

Getting remote of branch : test
Executing git config branch.test.remote
Remote obtained : origin


Getting URL of remote : origin
Executing  git config remote.origin.url
URL of remote obtained : [email protected]:suse/tep.git

Couldn't create merge request
Cannot read property 'green' of null

from gitlab-cli.

vishwanatharondekar avatar vishwanatharondekar commented on June 9, 2024

Looks like URL.parse(gitlab.options.url).host returned null. Can you check why that is the case. Whats the config set for gitlab.options.url . Check https://github.com/vishwanatharondekar/gitlab-cli#configurations to know how the config might have got saved.

If you dont mind sharing what your gitlab.options.url is then I can help more by debugging myself.

from gitlab-cli.

delanym avatar delanym commented on June 9, 2024

It was set to HTTPS.
Can you rather make this a global config value?
Also, isn't there a more secure way of saving this? The .git/config file is readable by anyone.

from gitlab-cli.

vishwanatharondekar avatar vishwanatharondekar commented on June 9, 2024

You can set global environment variables as well.

GITLAB_URL=https://gitlab.yourcompany.com
GITLAB_TOKEN=abcdefghijskl-1230

https://github.com/vishwanatharondekar/gitlab-cli#environment-variables

If this is not something you want let me know.

from gitlab-cli.

delanym avatar delanym commented on June 9, 2024

Thanks.
I don't want to store my PAT in plain text in an open file
Can you integrate with https://git-scm.com/docs/gitcredentials

from gitlab-cli.

vishwanatharondekar avatar vishwanatharondekar commented on June 9, 2024

2.0.9 included a fix for #92 which might have caused this issue. Let me check and come back on this.

from gitlab-cli.

koshyviv avatar koshyviv commented on June 9, 2024

Have the same issue and am on version 2.0.9

vivek@xxx-0020:~/portal$ lab merge-request -b dev -t staging -v
Verbose option used. Detailed logging information will be emitted.



Getting base branch information

Getting base branch name : 
Argument provided : dev
Base branch name obtained : dev

Getting remote of branch : dev
Executing git config branch.dev.remote
Remote obtained : origin


Getting URL of remote : origin
Executing  git config remote.origin.url
URL of remote obtained : [email protected]:gs/portal.git


gitlab host obtained : gitlab.com

Project name derived from host : gs/portal

Getting gitlab project info for : gs/portal
Couldn't create merge request
Cannot read property 'green' of undefined

from gitlab-cli.

bwjohnson-ss avatar bwjohnson-ss commented on June 9, 2024

Is there any resolution here? I just got the same error after migrating to a new laptop. I was probably on an older version on my old laptop, and was upgraded on the new.

from gitlab-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.