sabinmarcu / simplelocalize-deploy-proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heroku

github-deploy-proxy

This package acts as a simple proxy for github dispatch_event

The problem it's trying to solve is the fact that most CMS Webhooks don't offer the option of sending an encoded body as a Webhook. This solution is a proxy for webhooks. For instance, the CMS would send a request to this tool with:

GITHUB_TOKEN= ...
GITHUB_USER=sabinmarcu
GITHUB_REPO=github-deploy-proxy

[EVENT_TYPE]=my_custom_deploy_event

The first three parameters are required (as the GH API requires them, as well), while EVENT_TYPE is optional, and defaults to deploy;

What will happen next is that the proxy will re-engineer the request to be sent to Github API with the proper structure.

About

License:MIT License


Languages

Language:JavaScript 100.0%