Explorar o código

Change event type from pull_requests to pull_request

jnfrati %!s(int64=4) %!d(string=hai) anos
pai
achega
230e27dc07
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      api/server/handlers/environment/create.go

+ 1 - 1
api/server/handlers/environment/create.go

@@ -111,7 +111,7 @@ func (c *CreateEnvironmentHandler) ServeHTTP(w http.ResponseWriter, r *http.Requ
 				"content_type": "json",
 				"secret":       c.Config().ServerConf.GithubIncomingWebhookSecret,
 			},
-			Events: []string{"pull_requests"},
+			Events: []string{"pull_request"},
 			Active: github.Bool(false),
 		},
 	)