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

Function createGitLabReview

apps/web/src/lib/code-reviews/db/code-reviews.test.ts:1281–1298  ·  view source on GitHub ↗
(headSha: string, integrationId: string, projectId: number)

Source from the content-addressed store, hash-verified

1279 expect(rows.find(row => row.id === otherPlatformId)?.status).toBe('pending');
1280 expect(rows.find(row => row.id === otherPrId)?.status).toBe('pending');
1281 expect(rows.find(row => row.id === terminalCompletedId)?.status).toBe('completed');
1282 expect(rows.find(row => row.id === terminalFailedId)?.status).toBe('failed');
1283
1284 const [otherRepoRow] = await db
1285 .select({ status: cloud_agent_code_reviews.status })
1286 .from(cloud_agent_code_reviews)
1287 .where(eq(cloud_agent_code_reviews.id, otherRepoId))
1288 .limit(1);
1289 expect(otherRepoRow?.status).toBe('pending');
1290 });
1291
1292 it('settles the admitted ledger row for superseded reviews', async () => {
1293 const reviewId = await createCodeReview({
1294 owner: { type: 'user', id: testUser.id, userId: testUser.id },
1295 platformIntegrationId: githubIntegrationId,
1296 repoFullName: repo,
1297 prNumber: 46,
1298 prUrl: `https://github.com/${repo}/pull/46`,
1299 prTitle: 'ledger superseded settle',
1300 prAuthor: 'octocat',
1301 baseRef: 'main',

Callers 1

Calls 2

createCodeReviewFunction · 0.90
pushMethod · 0.80

Tested by

no test coverage detected