[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:
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(),
|
||||
|
||||
Reference in new issue
Block a user