Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sablier-labs/github-labels

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Labels

Useful for synchronizing labels across GitHub repositories. See github-label-sync.

Pre Requisites

Install the following package with npm:

npm install --global github-label-sync

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

Usage

Default

To apply the default labels to all repos:

$ ./apply.sh

To apply the default labels to one particular repo:

github-label-sync --access-token $GITHUB_TOKEN --allow-added-labels --labels ./default.yml sablier-labs/repo-name

Running these scripts will NOT overwrite any existing labels in the repo.

If you want to overwrite the labels, and also delete the labels that are not listed in the YAML files, remove the --allow-added-labels flag.

github-label-sync --access-token $GITHUB_TOKEN --labels ./default.yml sablier-labs/repo-name

Warning

The last command will delete any labels that are not listed in the YAML files. Use with caution.

Command Center

To apply the command center labels:

github-label-sync --access-token $GITHUB_TOKEN --allow-added-labels --labels ./command-center.yml sablier-labs/command-center

About

Set GitHub labels programmatically

Resources

Stars

Watchers

Forks

Languages

  • Shell 100.0%