npm.io
1.6.0 • Published 4d agoCLI

@customd/labot

Licence
MIT
Version
1.6.0
Deps
14
Size
134 kB
Vulns
0
Weekly
0

(Git)LaBot - Custom D tools for GitLab

LaBot is a command-line toolset that assists with some of the grunt-work required for project setup.

Documentation

Documentation is still in development, but will be made available at https://custom-d.customd.io/npm/labot

Setup

To install LaBot CLI, run the following command:

npm install -g @customd/labot

Usage

Help

For command help output, run:

labot help <command>

E.g.,

labot help sync-labels
Configure GitLab access

To configure the CLI tool for GitLab access, run labot configure. The command will prompt you for your GitLab instance URL, and Personal Access Token. This token requires at least (api) permission.

labot configure

This CLI tool shares configuration with other @customd/ CLI tools.

Variables

Alternatively, you can configure the tool using the following environment variables:

Name Description
GITLAB_URL The URL at which to connect to your GitLab instance. E.g., https://gitlab.com
GITLAB_TOKEN The access token to use when connecting to GitLab's API.
Copy GitLab labels from one group to another

This command allows you to copy group level labels from one group, to another. This allows for consistent labelling across projects.

Example

Executing this command will sync the default labels to the target group.

labot sync-labels -t <target-group-id>
What exactly does it do?
  1. Add labels from the source group (when no group is provided, it defaults to our label template group) to the target group.
  2. Update existing labels in the target group to match the source group colours & description.
  3. List out any labels in the target group that don't exist in the source group, so you can manually review & delete as required.

Uninstallation

To uninstall (Git)LaBot CLI, run the following command:

npm uninstall -g @customd/labot

License

Licensed under the MIT license.