MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / selectRepositoriesForSync

Function selectRepositoriesForSync

services/security-sync/src/sync.ts:1596–1602  ·  view source on GitHub ↗
(
  config: Pick<EnabledOwnerConfig, 'repositories' | 'repoNameToId'>,
  repoFullName?: string
)

Source from the content-addressed store, hash-verified

1594 AND ${findingOwnerPredicate(params.owner)}
1595 RETURNING ${security_finding_notifications.status}
1596 )
1597 SELECT status, count(*)::int AS count
1598 FROM finalized
1599 GROUP BY status
1600 `);
1601
1602 let pending = 0;
1603 let cancelled = 0;
1604 for (const row of result.rows) {
1605 if (row.status === 'pending') pending = row.count;

Callers 2

sync.test.tsFile · 0.85
syncOwnerFunction · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected