Git Product home page Git Product logo

webhooks-deployhooks-adapter's Introduction

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

webhooks-deployhooks-adapter's People

Contributors

nickrisaro avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.