From 02495cf325306a281c206708cfbba4218bb9bda2 Mon Sep 17 00:00:00 2001 From: Kilian Ciuffolo Date: Wed, 15 May 2024 12:24:16 -0700 Subject: [PATCH] link --- assets/index.html | 2 +- src/update-comment.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/index.html b/assets/index.html index be167ad..1483d6b 100644 --- a/assets/index.html +++ b/assets/index.html @@ -58,7 +58,7 @@ async function loadContent() { const spinner = document.getElementById("spinner"); const hash = getHashFromQueryString(); - const fileUrl = `${hash}.html`; + const fileUrl = `revisions/${hash}.html`; spinner.style.display = "block"; diff --git a/src/update-comment.js b/src/update-comment.js index 0b58e82..c6141b6 100644 --- a/src/update-comment.js +++ b/src/update-comment.js @@ -19,7 +19,7 @@ const updateCodeCoverageComment = module.exports = async ({ context, github, inp const coverage = parseFloat(coverageTextSummary.replace('%', ''), 10) const coverageEmoji = coverage >= threshold ? '' : `🔻 ${(coverage - threshold).toFixed(1)}% ` const pathText = (path !== '' ? ` for ${path}` : '') - const url = `https://${context.repo.owner}.github.io/${context.repo.repo}/${path}revisions/?hash=${revision}` + const url = `https://${context.repo.owner}.github.io/${context.repo.repo}/${path}?hash=${revision}` const commentBody = [ ``,