diff --git a/internal/pkg/githubapi/github.go b/internal/pkg/githubapi/github.go index b7a1fe81..af5bdbca 100644 --- a/internal/pkg/githubapi/github.go +++ b/internal/pkg/githubapi/github.go @@ -365,7 +365,7 @@ func ReciveWebhook(r *http.Request, mainGhClientCache *lru.Cache[string, GhClien func handleEvent(eventPayloadInterface interface{}, mainGhClientCache *lru.Cache[string, GhClientPair], prApproverGhClientCache *lru.Cache[string, GhClientPair], r *http.Request, payload []byte) { // We don't use the request context as it might have a short deadline and we don't want to stop event handling based on that // But we do want to stop the event handling after a certain point, so: - ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second) + ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute) defer cancel() var mainGithubClientPair GhClientPair var approverGithubClientPair GhClientPair