Provisioning: Fix repos stuck in deletion (#111918)

This commit is contained in:
Stephanie Hingtgen
2025-10-02 00:04:55 -06:00
committed by GitHub
parent ebbcef5583
commit 6f0a8a344a
5 changed files with 57 additions and 2 deletions
@@ -199,6 +199,9 @@ func (r *githubClient) DeleteWebhook(ctx context.Context, owner, repository stri
if ghErr.Response.StatusCode == http.StatusNotFound {
return ErrResourceNotFound
}
if ghErr.Response.StatusCode == http.StatusUnauthorized || ghErr.Response.StatusCode == http.StatusForbidden {
return ErrUnauthorized
}
return err
}