
Security News
Socket Security Analysis Is Now One Click Away on npm
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.
gitlab-fix-labels
Advanced tools
A tool to add and/or replace labels from any project (or all of them) with your GLOBAL GitLab admin labels.
This tool will help propagate into the repos of your choice those nice shiny new GitLab global admin labels you worked so hard on. See below.
This was built to address these issues with GitLab.
npm install -g gitlab-fix-labels
General command syntax:
gitlab-fix-labels GITLAB_API_STARTPOINT_URI YOUR_AUTH_TOKEN YOUR_ACTION YOUR_TARGET
Possible actions:
add - add your admin labels to your target repo(s); existing labels will not be touched; any duplicates will be skipped.
delete - completely and utterly delete all of a repository's labels.
replace - the same as calling delete followed by add.
Your target:
The target must either be the string all (case sensitive) or an integer larger than 0.
gitlab-fix-labels https://git.mysite.org/api/v4 myspecial_tokenhere add 10
gitlab-fix-labels https://newgitlab.com/api/v5 my2ndspecial_tokenhere delete all
gitlab-fix-labels http://git.lol/api/v4/ myotherspecial_tokenhere replace all
gitlab-fix-labels http://git.lol/api/v5/ special_token2 replace 555
To completely replace the labels on one project with your custom admin global defaults (set in the administrator area of GitLab):
gitlab-fix-labels GITLAB_API_STARTPOINT_URI YOUR_AUTH_TOKEN replace YOUR_TARGET
To completely replace the labels on ALL projects with your global admin defaults:
gitlab-fix-labels GITLAB_API_STARTPOINT_URI YOUR_AUTH_TOKEN replace all
To append your global admin defaults to ALL projects (not deleting existing labels):
gitlab-fix-labels GITLAB_API_STARTPOINT_URI YOUR_AUTH_TOKEN add all
In lieu of a formal styleguide, take care to maintain the existing coding style.
Lint and test your code!
FAQs
⛔️ [DEPRECATED] A tool to add and/or replace labels from any project (or all of them) with your GLOBAL GitLab admin labels.
The npm package gitlab-fix-labels receives a total of 4 weekly downloads. As such, gitlab-fix-labels popularity was classified as not popular.
We found that gitlab-fix-labels demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.