also looking at this
fix(review): read what publishing reported, honour reviewSuggestions, and un-strand two flags
#1435
5 files
+267
-10
| @@ -50,9 +50,9 @@ function stub(files: Record<string, string> = {}): { provider: GitProvider, seen | ||
| 50 | 50 | seen.filesRead.push({ path, ref }) |
| 51 | 51 | return files[path] ?? null |
| 52 | 52 | }, |
| 53 | createReview: async (prNumber: number, review: { body: string }) => { | |
| 53 | createReview: async (prNumber: number, review: { body: string, comments?: unknown[] }) => { | |
| 54 | 54 | seen.reviews.push({ pr: prNumber, body: review.body }) |
| 55 | return { id: 1 } | |
| 55 | return { posted: true, inlineComments: review.comments?.length ?? 0 } | |
| 56 | 56 | }, |
| 57 | 57 | updatePullRequest: async () => pr, |
| 58 | 58 | } as unknown as GitProvider |