项目作者: seegno

项目描述 :
A manager for GitHub issue labels
高级语言: JavaScript
项目地址: git://github.com/seegno/github-labels.git
创建时间: 2016-02-13T22:01:32Z
项目社区:https://github.com/seegno/github-labels

开源协议:MIT License

下载


GitHub Labels

npm
node
Build Status
Coverage Status

A command line tool that helps you manage your GitHub repository issue labels.

Installation

Using npm:

  1. npm install --global ghlabels

Or Yarn:

  1. yarn global add ghlabels

Usage

Basic usage

You can provide options as arguments or leave then blank and they will be prompted.

  1. ghlabels --repository foo/bar --token foobar --file ./path/somefile

Note: As an alternative you can provide options as enviroment variables (e.g. GITHUB_LABELS_TOKEN).

Copy from another repo

  1. ghlabels copy --source seegno/github-labels --target foo/bar --token foobar

List

  1. ghlabels list --repository seegno/github-labels

Client

You can also import ghlabels client and use it as a module:

  1. import { copyLabelsFromRepo, listLabels, updateLabels } from 'ghlabels';
  2. // Example of copying labels from a source repo.
  3. copyLabelsFromRepo({
  4. source: 'seegno/github-labels'
  5. target: 'foo/bar',
  6. token: 'foobar'
  7. });
  8. // Example of listing all labels from a repo.
  9. listLabels({
  10. repository: 'seegno/github-labels',
  11. token: 'foobar'
  12. });
  13. // Example of updating all labels from a repo.
  14. updateLabels({
  15. repository: 'foo/bar',
  16. token: 'foobar'
  17. });

Contributing & Development

Contributing

Found a bug or want to suggest something? Take a look first on the current and closed issues. If it is something new, please submit an issue.

Develop

It will be awesome if you can help us evolve github-labels. Want to help?

  1. Fork it.
  2. npm install.
  3. Hack away.
  4. Run the tests: npm test.
  5. Create a Pull Request.

Release

  1. npm version [<newversion> | major | minor | patch] -m "Release %s"

License

MIT