Sync labels between repositories on GitHub
git clone https://github.com/woocommerce/woocommerce-github-sync-labels.git
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 | 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. |
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