LaBot is a command-line toolset that assists with some of the grunt-work required for project setup.
Documentation is still in development, but will be made available at https://custom-d.customd.io/npm/labot
To install LaBot CLI, run the following command:
npm install -g @customd/labot
For command help output, run:
labot help <command>
E.g.,
labot help sync-labels
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.
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. |
This command allows you to copy group level labels from one group, to another. This allows for consistent labelling across projects.
Executing this command will sync the default labels to the target group.
labot sync-labels -t <target-group-id>
- Add labels from the source group to the target group.
- Update existing labels in the target group to match the source group colours & description.
- List out any labels in the target group that don't exist in the source group, so you can manually review & delete as required.
To uninstall (Git)LaBot CLI, run the following command:
npm uninstall -g @customd/labot
Licensed under the MIT license.