poppins-label

mary-poppins plugin for auto-labeling new issues and PRs on GitHub

poppins-label

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

npm install poppins-label

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;
    },
 
    // ... 
  }
};

MIT