added gitea
This commit is contained in:
parent
a6a1e88544
commit
da809273e0
2 changed files with 3 additions and 1 deletions
|
|
@ -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/
|
||||
```
|
||||
|
|
|
|||
3
main.go
3
main.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue