Skip to content

Commit 737b2b8

Browse files
authored
fix(review): clarify resolved thread fallback (#33)
1 parent f5c075b commit 737b2b8

4 files changed

Lines changed: 14 additions & 4 deletions

File tree

__tests__/unit/github/review-thread-resolver.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,12 @@ describe('ReviewThreadResolver', () => {
332332
expect(createReplyForReviewComment.mock.calls[0][0].body).toContain(
333333
'reviewrouter-lifecycle-resolution:v1'
334334
);
335+
expect(createReplyForReviewComment.mock.calls[0][0].body).toContain(
336+
'**Resolved ✅ ✅ ✅**\n\n<sub>ReviewRouter rechecked this finding'
337+
);
338+
expect(createReplyForReviewComment.mock.calls[0][0].body).toContain(
339+
'a maintainer can click Resolve conversation.</sub>'
340+
);
335341
});
336342

337343
it('reports when the resolution fallback reply could not be posted', async () => {

dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27877,7 +27877,9 @@ function renderResolutionFallbackComment(candidate) {
2787727877
return [
2787827878
`<!-- ${RESOLUTION_REPLY_MARKER} target_id=${candidate.target.targetId} fingerprint=${candidate.target.fingerprint} -->`,
2787927879
"",
27880-
"ReviewRouter rechecked this finding and the provider quorum marked it resolved. GitHub did not allow the app token to close this review thread automatically, so a maintainer can mark the conversation resolved manually."
27880+
"**Resolved \u2705 \u2705 \u2705**",
27881+
"",
27882+
"<sub>ReviewRouter rechecked this finding and the provider quorum marked it resolved. GitHub did not allow the app token to close this review thread automatically, so a maintainer can click Resolve conversation.</sub>"
2788127883
].join("\n");
2788227884
}
2788327885
function mapBackendReasonCodes(reasonCodes, fallback2 = []) {

dist/index.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/github/review-thread-resolver.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,9 @@ function renderResolutionFallbackComment(
654654
return [
655655
`<!-- ${RESOLUTION_REPLY_MARKER} target_id=${candidate.target.targetId} fingerprint=${candidate.target.fingerprint} -->`,
656656
'',
657-
'ReviewRouter rechecked this finding and the provider quorum marked it resolved. GitHub did not allow the app token to close this review thread automatically, so a maintainer can mark the conversation resolved manually.',
657+
'**Resolved ✅ ✅ ✅**',
658+
'',
659+
'<sub>ReviewRouter rechecked this finding and the provider quorum marked it resolved. GitHub did not allow the app token to close this review thread automatically, so a maintainer can click Resolve conversation.</sub>',
658660
].join('\n');
659661
}
660662

0 commit comments

Comments
 (0)