diff --git a/scripts/preview-theme.js b/scripts/preview-theme.js index c4305a56076bc..56e4cbb16a07e 100644 --- a/scripts/preview-theme.js +++ b/scripts/preview-theme.js @@ -87,8 +87,6 @@ async function run() { const ccc = new ColorContrastChecker(); const warnings = []; const token = core.getInput("token"); - console.log("token?"); - console.log(token); const octokit = github.getOctokit(token || process.env.PERSONAL_TOKEN); const pullRequestId = getPrNumber(); @@ -108,19 +106,12 @@ async function run() { const comment = await findComment(octokit, pullRequestId); const diff = parse(res.data); - const content1 = diff.find((file) => file.to === "themes/index.js") - .chunks[0].changes; - - const content = content1 - .filter((c) => c.type === "add") + const content = diff + .find((file) => file.to === "themes/index.js") + .chunks[0].changes.filter((c) => c.type === "add") .map((c) => c.content.replace("+", "")) .join(""); - console.log("content1 diff"); - console.log(content1); - console.log("content"); - console.log(content); - const themeObject = Hjson.parse(content); const themeName = Object.keys(themeObject)[0]; const colors = themeObject[themeName]; diff --git a/themes/index.js b/themes/index.js index 4312496ac6f86..fae8c20152fb2 100644 --- a/themes/index.js +++ b/themes/index.js @@ -361,6 +361,12 @@ const themes = { text_color: "e0def4", bg_color: "191724", }, + testinggg: { + title_color: "9ccfd8", + icon_color: "ebbcba", + text_color: "e0def4", + bg_color: "191724", + }, }; module.exports = themes;