From 600251aaec164275427556c281c455bb42a84b3d Mon Sep 17 00:00:00 2001 From: Tal Lannder Date: Thu, 15 Sep 2022 13:54:40 -0400 Subject: [PATCH 1/2] Update main.ts --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 376d9d9..c9b0af3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -96,7 +96,7 @@ async function run(): Promise { deltaCommentIdentifier ) } - messageToPost = `Current PR reduces the test coverage percentage by ${delta} for some tests` + messageToPost = `Current PR reduces the test coverage percentage by ${delta} percent or more for some tests` messageToPost = `${deltaCommentIdentifier}\nCommit SHA:${commitSha}\n${messageToPost}` await createOrUpdateComment( commentId, From 10344a0e2256028ba214a39b6f3dd49b3fd1c48e Mon Sep 17 00:00:00 2001 From: Tal Lannder Date: Thu, 15 Sep 2022 13:55:27 -0400 Subject: [PATCH 2/2] Update index.js --- dist/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 5b959b8..5e915b3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2082,7 +2082,7 @@ function run() { if (useSameComment) { commentId = yield findComment(githubClient, repoName, repoOwner, prNumber, deltaCommentIdentifier); } - messageToPost = `Current PR reduces the test coverage percentage by ${delta} for some tests`; + messageToPost = `Current PR reduces the test coverage percentage by ${delta} percent or more for some tests`; messageToPost = `${deltaCommentIdentifier}\nCommit SHA:${commitSha}\n${messageToPost}`; yield createOrUpdateComment(commentId, githubClient, repoOwner, repoName, messageToPost, prNumber); throw Error(messageToPost); @@ -9794,4 +9794,4 @@ function onceStrict (fn) { /***/ }) -/******/ }); \ No newline at end of file +/******/ });