diff --git a/pkg/web/webhook.go b/pkg/web/webhook.go index 75c4229..d03e2ed 100644 --- a/pkg/web/webhook.go +++ b/pkg/web/webhook.go @@ -155,7 +155,7 @@ func searchRepo(ctx context.Context, ds datastore.Datastore, gheDomain, repo str repoTarget, err := ds.GetTargetByScope(ctx, gheDomain, repo) if err == nil && repoTarget.CanReceiveJob() { return repoTarget, nil - } else if err != datastore.ErrNotFound { + } else if err != nil && err != datastore.ErrNotFound { return nil, fmt.Errorf("failed to get target from repo: %w", err) }