diff --git a/dist/index.js b/dist/index.js index 7a6379ac..cb3eaf6b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7831,11 +7831,11 @@ ${reviewsSkipped.length > 0 `; // add existing_comment_ids_block with latest head sha summarizeComment += `\n${commenter.addReviewedCommitId(existingCommitIdsBlock, context.payload.pull_request.head.sha)}`; + // post the review + await commenter.submitReview(context.payload.pull_request.number, commits[commits.length - 1].sha, statusMsg); } // post the final summary comment await commenter.comment(`${summarizeComment}`, lib_commenter/* SUMMARIZE_TAG */.Rp, 'replace'); - // post the review - await commenter.submitReview(context.payload.pull_request.number, commits[commits.length - 1].sha, statusMsg); }; const splitPatch = (patch) => { if (patch == null) { diff --git a/src/review.ts b/src/review.ts index 7a857e1e..07bf2e59 100644 --- a/src/review.ts +++ b/src/review.ts @@ -730,17 +730,17 @@ ${ existingCommitIdsBlock, context.payload.pull_request.head.sha )}` + + // post the review + await commenter.submitReview( + context.payload.pull_request.number, + commits[commits.length - 1].sha, + statusMsg + ) } // post the final summary comment await commenter.comment(`${summarizeComment}`, SUMMARIZE_TAG, 'replace') - - // post the review - await commenter.submitReview( - context.payload.pull_request.number, - commits[commits.length - 1].sha, - statusMsg - ) } const splitPatch = (patch: string | null | undefined): string[] => {