(
user: User,
platformIntegrationId: string,
headSha: string
)
| 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', |
no test coverage detected