Skip to content

Commit

Permalink
Fix blot preview bot when folder has spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwofford authored Aug 6, 2024
1 parent aae5ecb commit 07075d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/art-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 07075d3

Please sign in to comment.