module.exports = robot => {
  // Your plugin code here
  console.log('Yay, the plugin was loaded!', robot);

  // For more information on building plugins:
  // https://github.com/probot/probot/blob/master/docs/plugins.md

  // To get your plugin running against GitHub, see:
  // https://github.com/probot/probot/blob/master/docs/development.md
};

const handleEvent = require('./lib/handle-event');

module.exports = robot => {
  // Your plugin code here
  robot.on('pull_request', (event, context) => handleEvent(robot, event, context));

  // For more information on building plugins:
  // https://github.com/probot/probot/blob/master/docs/plugins.md

  // To get your plugin running against GitHub, see:
  // https://github.com/probot/probot/blob/master/docs/development.md
};

Use `handle-event` in main plugin
Use `handle-event` in main plugin
