clns / gitlab-cli Goto Github PK
View Code? Open in Web Editor NEWCLI tool for GitLab (no prerequisites required)
License: MIT License
CLI tool for GitLab (no prerequisites required)
License: MIT License
Can we have this repository on gitlab, and the github repo be a fork of that?
I guess it makes sense, right?
Thanks.
Can I install gitlab-cli
with go get
command?
Hi,
I guess
in README.md, Devlopment, git submodule --init update should be git submodule update --init
Best regards
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:
Please let me know what I'm doing wrong here and what the config file should contain.
Thanks
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?
I've set up my labels in one repo and would like to copy them to global labels
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!
Could we create a new release for this project, or can we add some artifacts which we can download from CI?
Hi, I want to control a permission to push to some repository.
I think there is no feature that can manage repository.
I mean, I want to do like below:
https://docs.gitlab.com/ee/user/project/protected_branches.html
using gitlab-cli
.
Many Thanks!
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)
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)
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?
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
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.
every use generates the same:
error: open : no such file or directory
...same result
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.