From cdc1c27fdcc11faa0bad93ca5a3378ef7220e9d1 Mon Sep 17 00:00:00 2001 From: samczsun Date: Thu, 30 Jan 2025 13:27:54 -0800 Subject: [PATCH 1/2] Update new issue link to use templates --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 086caf8..1337b2a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -160,9 +160,9 @@ function start() { throw new Error('Unable to locate new issue link'); } - const newIssueParams = `?title=[Legitimate%20Site%20Blocked]%20${encodeURIComponent( + const newIssueParams = `?template=02-blocklist-removal.yaml&domains=${encodeURIComponent( suspectHostnameUnicode, - )}&body=${encodeURIComponent(toUnicode(suspectHrefUnicode))}`; + )}`; newIssueLink.addEventListener('click', async () => { window.location.href = `${newIssueUrl}${newIssueParams}`; From 92c0b0c47cd7a82a772a0f64b602804c71e7d490 Mon Sep 17 00:00:00 2001 From: samczsun Date: Fri, 31 Jan 2025 22:54:53 -0800 Subject: [PATCH 2/2] Update index.ts --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 1337b2a..8124eee 100644 --- a/src/index.ts +++ b/src/index.ts @@ -161,7 +161,7 @@ function start() { } const newIssueParams = `?template=02-blocklist-removal.yaml&domains=${encodeURIComponent( - suspectHostnameUnicode, + toUnicode(suspectHrefUnicode), )}`; newIssueLink.addEventListener('click', async () => {