From 07075d3d81a76f8fa8f1d8d77e2aa2914e2b99a9 Mon Sep 17 00:00:00 2001 From: Max Wofford Date: Tue, 6 Aug 2024 16:54:17 -0400 Subject: [PATCH] Fix blot preview bot when folder has spaces --- .github/workflows/art-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/art-pr.yml b/.github/workflows/art-pr.yml index 07e616a5f..6183c0425 100644 --- a/.github/workflows/art-pr.yml +++ b/.github/workflows/art-pr.yml @@ -31,7 +31,7 @@ jobs: for (const file of changedFiles.data) { if (!file.filename.endsWith('index.js')) continue; const rawUrl = `https://raw.githubusercontent.com/${owner}/${repo}/${pr.head.sha}/${file.filename}` - const blotUrl = `https://blot.hackclub.com/editor?src=${rawUrl}`; + const blotUrl = `https://blot.hackclub.com/editor?src=${encodeURI(rawUrl)}`; if (!also) { commentbody += `\`${file.filename}\` looks like art! [preview it in the editor](${blotUrl})\n`