Skip to content

NodeJs CLI tools to search keywords in find across all your project

Notifications You must be signed in to change notification settings

ldbglobe/gitlab-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS Cli Gitlab Finder

Due to the Gitlab advanced search rate limiter, I was unable to use the CLI tools written by Phillip Johnsen. So I wrote my own in NodeJS using the GitLab API NodeJS library GitBeaker by Justin Dalrymple

This project is quite straightforward with only to settings to fill in the .env file (a read only personnal auth token) and the string to search. Then you can start searching by running the search script

Notice: due to the really low rate limit (10 request per minute) you may wait for quite a long time. Based on my own experiment, about 700 seconds to search across 100 projects

1. Install

git clone git@github.com:ldbglobe/gitlab-finder.git
cd gitlab-finder
cp .env.sample .env

2. Configure

Edit the .env to put your own personnal authtoken, search string file extension and target group (optionnal) before executing the script

3. Execute with you prefered node package manager

npm install # run once to install dependencies
npm run search
pnpm install # run once to install dependencies
pnpm run search
yarn # run once to install dependencies
yarn search

About

NodeJs CLI tools to search keywords in find across all your project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published