@next/gh-labels
v1.0.1
Published
GitHub labels we use at Next.
Downloads
31
Readme
gh-labels
GitHub labels for Next
Deployment
To get new or updated labels to be used with our GitHub webhooks you need to do the following:
- Publish a new release of this package on NPM
- Update the package.json over in we-are-next/gh-webhooks
- If the tests pass, the updated webhooks will be automatically deployed.
If you're making a lot of updates and find publishing slow and tedious, check out cut-release.
Usage
CLI
To manually add labels to an existing repo, there are two things that you'll need.
Firstly, install github-labels:
npm install --global github-labels
Then, get a local copy of the config.json in this repo.
git clone [email protected]:we-are-next/gh-labels.git
Cool! Now you can run the following command to create labels:
labels -c gh-labels/config.json user/repo
You may optionally remove any existing labels by using the force option:
labels -c gh-labels/config.json -f user/repo
Node
npm install --save @next/gh-labels
var labels = require('@next/gh-labels')
labels.forEach(function (label) {
// do something
})