poppins-label

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

Usage no npm install needed!

<script type="module">
  import poppinsLabel from 'https://cdn.skypack.dev/poppins-label';
</script>

README

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