Giter Club home page Giter Club logo

cli-gitlab's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cli-gitlab's Issues

TypeError: require(...) is not a function

@mdsb100 Hi. I'm getting the following error when I run gitlab projects. I'm running node v9.11.1. I had it working before so it may be due to the node version. See command output below.

/usr/local/lib/node_modules/cli-gitlab/bin/worker.js:56
      gitlab = require("gitlab")({
                                ^

TypeError: require(...) is not a function
    at requireOrGetGitlab (/usr/local/lib/node_modules/cli-gitlab/bin/worker.js:56:33)
    at Command.<anonymous> (/usr/local/lib/node_modules/cli-gitlab/bin/worker.js:242:16)
    at Command.listener (/usr/local/lib/node_modules/cli-gitlab/node_modules/commander/index.js:315:8)
    at Command.emit (events.js:180:13)
    at Command.parseArgs (/usr/local/lib/node_modules/cli-gitlab/node_modules/commander/index.js:651:12)
    at Command.parse (/usr/local/lib/node_modules/cli-gitlab/node_modules/commander/index.js:474:21)
    at Object.<anonymous> (/usr/local/lib/node_modules/cli-gitlab/bin/command.js:19:9)
    at Module._compile (internal/modules/cjs/loader.js:654:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
    at Module.load (internal/modules/cjs/loader.js:566:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
    at Function.Module._load (internal/modules/cjs/loader.js:498:3)
    at Module.require (internal/modules/cjs/loader.js:598:17)
    at require (internal/modules/cjs/helpers.js:11:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/cli-gitlab/bin/gitlab:2:1)
    at Module._compile (internal/modules/cjs/loader.js:654:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
    at Module.load (internal/modules/cjs/loader.js:566:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
    at Function.Module._load (internal/modules/cjs/loader.js:498:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
    at startup (internal/bootstrap/node.js:201:19)

showIssue doesn't work

...or I'm just using it incorrectly.

gitlab showIssue meteor-iron-router-function-trace 1

should display this issue, right? That doesn't print out anything.

createIssue / editIssue just return true

I've recently setup cli-gitlab including setting the URL and adding a token. This seems to work for read operations, but I can't seem to make it actually do anything, nor does it give me any indication of what went wrong:

❯❯❯ gitlab createIssue -t "Test from CLI" 16
true

I expected a json representation of the created issue. No issue is created and "true" seems like a misnomer.

Project id 16 is a test repo I setup for playing with this, and if I query it I can see the existing issues:

❯❯❯ gitlab issues --filter item.project_id==16
[
  {
     ...
  }
  ...
]

Likewise editIssue just returns "true" to the console and doesn't actually edit anything.

createUser creates a new project

I was using the command createUser and for my surprise it creates a new project instead of a new user. And if you run the gitlab --help, you will see that the same help text is the same for the createUser and createProject commands.

using cli-gitlab with gulp

Hi,

i am wondering how to use your cli-gitlab with gulp.
even so it would be great to have a detailed tutorial how to install and to use it in detail.

i appreciate any help

cheers Ludwig

createUser creates a new project

I was using the command createUser and for my surprise it creates a new project instead of a new user. And if you run the gitlab --help, you will see that the same help text is the same for the createUser and createProject commands.

addGroupMember throws error

While testing commands, I created a user named Psyanide. I tried the command line for many of the commands, and so far all work except addGroupMember.

my command:
gitlab addGroupMember 4 3 30
explanation: 4 = Psyanide, 3 = LordPsyanGroup, 30 = DEVELOPER

I get this error (I have tried many variations, and same error. I have searched everywhere for the answer):
` gitlab addGroupMember 4 3 30

/usr/lib/node_modules/cli-gitlab/node_modules/gitlab/lib/Models/Groups.js:139
throw "accessLevel must be one of " + (JSON.stringify(this.access_levels));
^
accessLevel must be one of {"GUEST":10,"REPORTER":20,"DEVELOPER":30,"MASTER":40,"OWNER":50}
`

I cannot figure out exactly how to state accessLevel. Maybe adding something to the documentation might help.

Updating the state of a merge request doesn't work

Running gitlab updateMergeRequest --state_event close :projectId :mergeRequestId should close the merge request, and a subsequent call to gitlab showMergeRequest :projectId :mergeRequestId should reflect that change.

Unfortunately, when running that, absolutely nothing happens, and the subsequent query shows that no changes have been made.

possibility to use namspace_name instead of id ?

Hi,

nice cli-tool.;)
But using namespace_ids to create projects in diferent groups is quite cumbersome. I would be very nice if there was a possibility to use the name itself.
E.g:

~> gitlab createProject --name testing --namespace testgroup 

Unable to list notes for a merge request

According to the gitlab api docs for Notes, I should be able to list all the comments for a merge request by running a GET to /projects/:id/merge_requests/:merge_request_iid/notes. Unfortunately, when I try to run gitlab issueNotes :id :merge_request_id I get the following:

sh-4.4$ gitlab issueNotes [redacted] [redacted]
C:\Users\[redacted]\AppData\Roaming\npm\node_modules\cli-gitlab\bin\worker.js:267
      return target[fn].apply(target, arg);
                   ^

TypeError: Cannot read property 'all' of undefined
    at Command.<anonymous> (C:\Users\[redacted]\AppData\Roaming\npm\node_modules\cli-gitlab\bin\worker.js:267:20)
    at Command.listener (C:\Users\[redacted]\AppData\Roaming\npm\node_modules\cli-gitlab\node_modules\commander\index.js:301:8)
    at emitTwo (events.js:106:13)
    at Command.emit (events.js:194:7)
    at Command.parseArgs (C:\Users\[redacted]\AppData\Roaming\npm\node_modules\cli-gitlab\node_modules\commander\index.js:615:12)
    at Command.parse (C:\Users\[redacted]\AppData\Roaming\npm\node_modules\cli-gitlab\node_modules\commander\index.js:458:21)
    at Object.<anonymous> (C:\Users\[redacted]\AppData\Roaming\npm\node_modules\cli-gitlab\bin\command.js:19:9)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)

api v4? node-gitlab v3.7.0?

Is this lib compatible with Gitlab api v4? with the up-to-date node gitlab?

Background:
I updated gitlab itself (which now requires api v4) -> my CI broke silently
So then:
I tried explicitly installing node-gitlab in my CI-docker image and now i get an error in my CI:

/usr/lib/node_modules/cli-gitlab/bin/worker.js:58
      gitlab = gitlabLib({
               ^

TypeError: gitlabLib is not a function
    at requireOrGetGitlab (/usr/lib/node_modules/cli-gitlab/bin/worker.js:58:16)
    at Command.exports.token (/usr/lib/node_modules/cli-gitlab/bin/worker.js:82:14)
    at Command.listener (/usr/lib/node_modules/cli-gitlab/node_modules/commander/index.js:315:8)
    at emitTwo (events.js:126:13)
    at Command.emit (events.js:214:7)
    at Command.parseArgs (/usr/lib/node_modules/cli-gitlab/node_modules/commander/index.js:651:12)
    at Command.parse (/usr/lib/node_modules/cli-gitlab/node_modules/commander/index.js:474:21)
    at Object.<anonymous> (/usr/lib/node_modules/cli-gitlab/bin/command.js:19:9)
    at Module._compile (module.js:635:30)

Not sure if it is related, but i see that there was some reshuffling of the main gitlab repo for node-gitlab...
jdalrymple/gitbeaker#191

Any help?

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.