GithubHelp home page GithubHelp logo

gitlab-cli's People

Contributors

bollenn avatar clns avatar jollheef avatar

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  avatar  avatar  avatar  avatar  avatar  avatar

gitlab-cli's Issues

error on use

every use generates the same:
error: open : no such file or directory

  • run as typical user
  • run as priv user
  • run as root

...same result

Documentation for copying is unclear

I want to copy the labels from Repository A to Repository B. I can't work out from the docs how to do that, and the various I'm trying don't seem to work. how might I do that given that I've configured repoA and repoB in the yaml file?

Need to increase timeouts

Gitlab.com is convenient for those that need a public repository or a private one shared by others, however this script cannot run against Gitlab.com as the timeout is always reached. Gitlab.com can be sluggish.

Please increase timeouts so we can use this with Gitlab.com.

Errors flip back and forth between these two:

error: invalid source repository: empty repo url

False: The source repo is in the config, and trying this command intermittently throws this. Seems to be a timeout when reading the source repo.

error: invalid target repository: failed to get GitLab project '<private repo': Get https:/api/v3/projects/search/<repo>: net/http: request canceled (Client.Timeout exceeded while awaiting headers)

Release or artifact

Could we create a new release for this project, or can we add some artifacts which we can download from CI?

repository/group wildcard

I think that it might be interesting to allow label management (copy/update) for more than one project/group (or even a whole GitLab instance) at once.

E.g.

gitlab-cli label copy -U https://mygitlab.example.com/mygroup/*  -t xxxxxx

gitlab-cli label copy -U https://mygitlab.example.com/mygroup/linux-*  -t xxxxxx

gitlab-cli label update -r "linux-*" --match <REGEX> --name <NAME> --color <COLOR> --description <DESC>

WDYT? Any clue in how to add this feature?

"incorrect path" Error when using a repo with subgroups.

When accessing a repo within a sub group, for example:

https://gitlab.com/maingroup/subgroup/project

The following error is returned:

error: invalid target repository: failed to get GitLab project https://gitlab.com/maingroup/subgroup/project': incorrect path: maingroup/subgroup/project

git submodule update --init

Hi,
I guess
in README.md, Devlopment, git submodule --init update should be git submodule update --init

Best regards

Multiple group inclusion failed to copy label

When you have a repo which is in a group which is also in a group. I use the command:
gitlab-cli label copy -U https://<URL>/<group1>/<group2>/<project> -t <token>
it returns
error: invalid target repository: failed to get Gitlab project 'https://...': repository with path <group1>/<group2>/<project> was not found

PS: thanks for your work.

Copy error + how to use the local config YAML?

Cool project!

I can't seem to find any info on what I should put in the config YAML, and I'm not familiar enough with Go to try and figure out the required YAML structure.

I ask because I get an error when I try this (my .gitlab-cli.yaml is empty):

gitlab-cli label copy -u "https://git.my-site.com/my_group/my_project" -t "MY_TOKEN"
Using config file: /root/.gitlab-cli.yaml
error: invalid target repository: failed to get GitLab project 'https://git.my-site.com/my_group/my_project':
  Get https:/api/v3/projects/search/my_project:
    net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

I see a few interesting things here:

  1. The output seems to indicate that the API request is using an invalid URL
  2. Doing a search for project by name will be problematic for me as I'm dealing w/ many groups having the same projects
  • Hopefully, your code accounts for that and filters through the list of search results to get the project matching the group

Please let me know what I'm doing wrong here and what the config file should contain.

Thanks

Upgrade to API version 4?

Hi. This is an excellent tool, thanks for this! Are there any plans to upgrade this to use the V4 version of the GitLab API? V3 has been deprecated as of GitLab 9.5 (we're past version 10 now).

Update for those in search of a solution: since I wasn't able to find any other tools that can propagate my global admin labels across my instance that also work with the latest version of GitLab, I made one myself: https://www.npmjs.com/package/gitlab-fix-labels. It also addresses #11.

Cheers!

Cannot find module '@babel/runtime/core-js/object/define-property'

Hi, thank you for developing this cli, after install I got this error. Any suggestion?

module.js:549
throw err;
^

Error: Cannot find module '@babel/runtime/core-js/object/define-property'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/usr/local/lib/node_modules/git-lab-cli/node_modules/gitlab/dist/es5/index.js:7:30)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)

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.