Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.02 KB

File metadata and controls

43 lines (27 loc) · 1.02 KB

GitHub Labels

Synchronizing the GitHub labels across repositories.

This repo relies upon the github-label-sync npm package.

Pre Requisites

Install the following package:

npm install -g github-label-sync

Install just command runner.

And have your GitHub token set in the environment variable GITHUB_TOKEN. The token must have the repo and public_repo scopes.

Usage

Runjust --list to see the available commands.

To apply the labels to all repos:

just apply-all

To apply the labels to one particular repo:

just apply-repo owner/repo

Configuration

Labels are defined in labels/default.yml. The just apply-repo command will preserve existing labels in the repository, while just apply-repo-overwrite will delete any labels not listed in the YAML file.

Warning

The apply-repo-overwrite command will delete any labels that are not listed in the YAML files. Use with caution.