Comments (12)
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.
Same issue here, version 2.0.9 won't work, but 2.0.7 is okay
from gitlab-cli.
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.
Possible for you to use -v
option and post the verbose log output here after sanitising it.
from gitlab-cli.
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.
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.
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.
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.
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.
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.
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.
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)
- Cannot read property 'green' of undefined HOT 3
- Latest 2.0.10 version merge request broked HOT 2
- Response code 401 (Unauthorized) HOT 7
- How do I need to set the project name HOT 5
- Merge request not opening on correct repository. HOT 2
- Response code 401 (Unauthorized) HOT 6
- `lab mr` command creates merge request with wrong project HOT 1
- Print URL after merge-request HOT 1
- Crash when using with pipelines HOT 5
- option -V always gives 1.0.2 HOT 5
- Add support for adding approvers HOT 1
- Automatically merge if CI passes HOT 7
- Why succed when baseBranch is not defined? HOT 8
- Release support HOT 2
- Invocation after installation fails HOT 4
- Could I input Description without opening an editor? HOT 5
- `getURLOfRemote` return a remote URL with newline character after the project name HOT 1
- 401 - {"error":"You need to sign in or sign up before continuing."} HOT 2
- create mr with cli failed: 404 - {"status":"404","error":"Not Found"} HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitlab-cli.