webhook-interceptor/README.md
2019-11-30 13:05:47 +01:00

505 B

webhook-interceptor

The Webhook Interceptor checks for specific conditions when a webhook is received.

This way we can trigger cleanups when the PR is closed.

HTTP Headers

Push Event

X-Interceptor-Ref: refs/heads/master

Pull-Request Event

X-Interceptor-Action: [create|delete]

Issue Comment Event

TBD

X-Interceptor-Comment: /test

Build and run

export KO_DOCKER_REPO='gcr.io/my-gcloud-project-name'
export GO111MODULE=off

ko apply -f config/