hubot-archive / hubot-github-repo-event-notifier

Notifies about any GitHub repo event available via webhook.
https://www.npmjs.org/package/hubot-github-repo-event-notifier
57 stars 42 forks source link

Feature: Custom Actions #38

Open benoror opened 7 years ago

benoror commented 7 years ago

Fix https://github.com/hubot-scripts/hubot-github-repo-event-notifier/issues/37

benoror commented 7 years ago

How it works: Simply place your "custom actions" module inside scripts/github/custom-actions.js on your hubot's project root and override desired actions like this:

module.exports = {
  release: function(adapter, data, cb) {
    var res = data.action + ': ' + data.release + '\n';
    res += data.release.html_url + '\n'
    res += data.release.body;
    cb(res);
  }
};

(Tested Locally & Heroku)

benoror commented 7 years ago

@patcon @parkr Any feedback on this? Let me know if you need any kind of help!

benoror commented 7 years ago

@patcon @parkr ping ❤️