first commit
This commit is contained in:
commit
ad18bb8ad3
9 changed files with 309 additions and 0 deletions
35
README.md
Normal file
35
README.md
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# webhook-interseptor
|
||||
|
||||
The Webhook Interseptor 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-Interseptor-Ref: refs/heads/master
|
||||
```
|
||||
|
||||
## Pull-Request Event
|
||||
|
||||
```
|
||||
X-Interseptor-Action: [create|delete]
|
||||
```
|
||||
|
||||
## Issue Comment Event
|
||||
|
||||
**TBD**
|
||||
|
||||
```
|
||||
X-Interseptor-Comment: /test
|
||||
```
|
||||
|
||||
# Build and run
|
||||
|
||||
```
|
||||
export KO_DOCKER_REPO='gcr.io/my-gcloud-project-name'
|
||||
|
||||
ko apply -f config/
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue