[Provisioning] Fix webhook and finalizer issues (#101052)

Fix webhook and finalizer issue

The maximum number of webhooks per repository is 20
This commit is contained in:
Roberto Jiménez Sánchez authored and GitHub committed 2025-02-20 13:50:11 +01:00
1 parent 157f8fdcfb
commit 30bf602c77
1 file changed
+3
@@ -439,6 +439,9 @@ func (r *githubClient) CreateWebhook(ctx context.Context, owner, repository stri
if errors.As(err, &ghErr) && ghErr.Response.StatusCode == http.StatusServiceUnavailable {
return WebhookConfig{}, ErrServiceUnavailable
}
if err != nil {
return WebhookConfig{}, err
}
return WebhookConfig{
ID: createdHook.GetID(),