From 23ea2f4dc709eec915563d2569382ccae09f4162 Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo Date: Tue, 14 May 2024 10:36:42 -0700 Subject: [PATCH] feat: add loader with spinner on index.html to handle delay closes #7 --- assets/index.html | 78 +++++++++++++++++++++++++++++++++++++++++++ src/update-comment.js | 2 +- 2 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 assets/index.html diff --git a/assets/index.html b/assets/index.html new file mode 100644 index 0000000..be167ad --- /dev/null +++ b/assets/index.html @@ -0,0 +1,78 @@ + + + + + Waiting for GitHub Pages Deployment + + + + +
+

Waiting for GitHub Pages Deployment

+ + diff --git a/src/update-comment.js b/src/update-comment.js index 9f35165..9bc7cfb 100644 --- a/src/update-comment.js +++ b/src/update-comment.js @@ -14,7 +14,7 @@ const updateCodeCoverageComment = module.exports = async ({ context, github }, r const commentBody = [ '', - `### [Code Coverage Report 🔗](https://${context.repo.owner}.github.io/${context.repo.repo}/${revision}.html#file0) for ${revision}`, + `### [Code Coverage Report 🔗](https://${context.repo.owner}.github.io/${context.repo.repo}/?hash=${revision}) for ${revision}`, ] if (fs.existsSync('cover.txt') === true) {