1.0.2 • Published 3 years ago

gitlab-branch-search v1.0.2

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
3 years ago

gitlab-branch-search

A CLI tool to recursively search Gitlab groups for projects containing certain branch names.

Install

$ npm install -g gitlab-branch-search

Usage

With a .env File

Create a .env file in the current working directory and set the following environment variables:

GITLAB_HOST=<GITLAB_HOST_URL>
GITLAB_TOKEN=<PERSONAL_GITLAB_TOKEN>

Then run the command:

gitlab-branch-search <FULL_GROUP_NAME> [BRANCH_SEARCH_REGEX]

Powershell One-Liner

$env:GITLAB_HOST='<GITLAB_HOST_URL>'; $env:GITLAB_TOKEN='<PERSONAL_GITLAB_TOKEN>'; gitlab-branch-search <FULL_GROUP_NAME> [BRANCH_SEARCH_REGEX]; Remove-Item Env:\GITLAB_HOST; Remove-Item Env:\GITLAB_TOKEN

Bash (and compatible) One-Liner

GITLAB_HOST=<GITLAB_HOST_URL>; GITLAB_TOKEN=<PERSONAL_GITLAB_TOKEN>; gitlab-branch-search <FULL_GROUP_NAME> [BRANCH_SEARCH_REGEX]
1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago