0.0.3 • Published 10 years ago

poppins-label v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

poppins-label

A Mary Poppins plugin for auto-labeling new issues and PRs on GitHub.

Install

npm install poppins-label

Configure

To use this plugin, you need to load it in your config file with couldYouPlease:

// config.js
module.exports = function (poppins) {

  poppins.config = { /*...*/ };

  // load label plugin
  poppins.couldYouPlease('label');

  // map tag name -> predicate fn
  plugins.labels = {

    // tag even numbered issues
    'even': function (issue) {
      return issue.number % 2 === 0;
    },

    // ...
  }
};

License

MIT

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago