Skip to content

woocommerce/woocommerce-github-sync-labels

Repository files navigation

woocommerce-github-sync-labels

Sync labels between repositories on GitHub

Requeriments

Install

git clone https://github.com/woocommerce/woocommerce-github-sync-labels.git

Setup

Create a config.json file in this project's root directory based on config-sample.json, and fill githubAccessToken.

cd woocommerce-github-sync-labels
npm install
cp config-sample.json config.json

For more details about GitHub acess tokens, check "Creating a personal access token for the command line".

Options

Options Description
--dry-run Test mode, no changes will happens in any repository
--preserve-labels New labels introduced directly in GitHub will be preserved
--repo Sync to this repository. Multiple repositories supported.

Examples

Update labels:

npm start

Test mode (already runs with --dry-run):

npm test

With Options:

npm start -- --dry-run --preserve-labels --repo organization/repository1 --repo organization/repository2

Changelog

See changelog for details