Skip to content

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

Notifications You must be signed in to change notification settings

heroku/webhooks-deployhooks-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Keep in mind that several actions may trigger a release, you will receive a Webhook message for every release. This is slightly different from what you received with Deploy Hooks; if you only want to receive a notification when a code change happened you need to filter messages based on the description, code changes have a description starting with "Deploy".

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published