cherry-webhooks

1.0.0 • Public • Published

cherry-webhooks

config

This config will create a server listening on port 42777 and will produce from: "dockerhub" messages when a "POST /my_dockerhub_hook" request is received.

"webhooks": {
  "host": "0.0.0.0",
  "port": 42777,
  "hooks": [
    [ "dockerhub", "/my_dockerhub_hook" ]
  ]
}

api

Produces "from: <webhook_name>" messages. e.g.

cherry.handle({
  dockerhub: function (message) {
    var repo = message.repository.repo_name;
 
    cherry.produce({
      to: 'chat',
      body: '[dockerhub] pushed at ' + repo
    });
  }
});

Package Sidebar

Install

npm i cherry-webhooks

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • blandinw