added gitea

This commit is contained in:
ston1th 2019-11-30 13:05:47 +01:00
commit da809273e0
2 changed files with 3 additions and 1 deletions

View file

@ -30,6 +30,7 @@ X-Interceptor-Comment: /test
```
export KO_DOCKER_REPO='gcr.io/my-gcloud-project-name'
export GO111MODULE=off
ko apply -f config/
```

View file

@ -30,7 +30,8 @@ func prHandler(w http.ResponseWriter, r *http.Request) {
return
}
switch pr.Action {
case "opened", "reopened", "synchronize":
case "opened", "reopened", "synchronize", // GitHub
"synchronized": // Gitea
if r.Header.Get("X-Interceptor-Action") == "create" {
w.Write(body)
return