From 82425e4812c4688e4d8947db3bb04b168f53491e Mon Sep 17 00:00:00 2001 From: hugsy Date: Sat, 16 Dec 2023 10:34:25 -0800 Subject: [PATCH] final touch --- .github/workflows/coverage.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2d70f88ff..22f08c1d0 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -64,17 +64,16 @@ jobs: WORDS_FOUND: ${{ steps.get_coverage.outputs.words_found }} with: script: | + const diff_score = ${{ steps.get_coverage.outputs.diff_score }}; const tests_changes = ${{ steps.get_coverage.outputs.include_tests }}; const docs_changes = ${{ steps.get_coverage.outputs.include_docs }}; const forbiddenWordsString = process.env.WORDS_FOUND || ''; const forbidden_words = forbiddenWordsString.split(" ").filter(word => word.trim() !== ''); - const comment = `## 🤖 Coverage Update for ${process.env.COMMIT} + const comment = `## 🤖 Coverage update for ${process.env.COMMIT} - * Commit: ${process.env.COMMIT} * Diff Commit: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} - * Current Coverage: ${process.env.SCORE_OLD}% - * New Coverage: ${process.env.SCORE_NEW}% - * Diff Score: ${process.env.SCORE_DIFF} + * Current vs New Coverage Score: ${process.env.SCORE_OLD}% / ${process.env.SCORE_NEW}% + * Difference: ${process.env.SCORE_DIFF} ${(diff_score >= 0) ? "🟢" : "🔴"} To this point, this PR: * ${(tests_changes == 0) ? "**does not** include" : "includes"} changes to tests