case / heroku-webhooks-deployhooks-adapter

This app is intended as an example to aid on the migration from Deploy Hooks to App Webhooks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webhooks to deployhooks adapter

This app is intended as an example to aid on the migration from Deploy Hooks to App Webhooks.

It receives a Webhook release message, generates a message similar to the one Deploy Hooks HTTP Hook made and calls an endpoint with that payload.

Feel free to fork this repo and customize it to your needs.

Deploy

Deploy

Click on the deploy button and provide the requested config vars.

Configuration

This app uses 3 config vars

HTTP_ENDPOINT

This is the URL where you currently receive Deploy Hooks notifications. It will be called on every release of your app.

AUTHORIZATION

You can provide this value when you create a new Webhook. Every message Webhooks send will have this value on the Authorization header

If you don't provide this value the Authorization header will be ignored and all messages will be accepted.

Refer to App Webhooks' shared authorization documentation for more info

WEBHOOK_SECRET

This value is provided to you when you first set up a Webhook. It will be used to sign every message Webhooks send.

If you don't provide this value the digest header will be ignored and all messages will be accepted.

Refer to App Webhooks' shared secret documentation for more info

About

This app is intended as an example to aid on the migration from Deploy Hooks to App Webhooks


Languages

Language:Ruby 98.6%Language:Shell 1.4%