gitlab-finder
gitlab-finder copied to clipboard
NodeJs CLI tools to search keywords in find across all your project
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 [email protected]:ldbglobe/gitlab-finder.git
cd gitlab-finder
yarn
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
yarn search