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

Function createActiveReview

apps/web/src/lib/code-reviews/db/code-reviews.test.ts:414–434  ·  view source on GitHub ↗
(
      user: User,
      platformIntegrationId: string,
      headSha: string
    )

Source from the content-addressed store, hash-verified

412 {
413 owner: { type: 'user', id: secondUser.id, userId: secondUser.id },
414 platform: 'github',
415 repoFullName: `${REPO}-exact-duplicate`,
416 prNumber: 18,
417 },
418 'exact-duplicate-head-sha'
419 );
420
421 expect(matchingReview?.id).toBe(firstReviewId);
422 expect(otherOwnerReview).toBeNull();
423 });
424
425 it('finds active reviews within the exact owner and repository scope across integrations', async () => {
426 const createActiveReview = async (
427 user: User,
428 platformIntegrationId: string,
429 headSha: string
430 ) => {
431 const id = await createCodeReview({
432 owner: { type: 'user', id: user.id, userId: user.id },
433 platformIntegrationId,
434 repoFullName: `${REPO}-active-scope`,
435 prNumber: 20,
436 prUrl: `https://github.com/${REPO}-active-scope/pull/20`,
437 prTitle: 'active review scope',

Callers 1

Calls 2

createCodeReviewFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected