diff --git a/scripts/preview-theme.js b/scripts/preview-theme.js index cc4f6a5..fe5f96b 100644 --- a/scripts/preview-theme.js +++ b/scripts/preview-theme.js @@ -12,6 +12,15 @@ function getPrNumber() { return pullRequest.number; } +const themeContribGuidelines = ` + \r> Hi thanks for opening the theme contribution, please read our theme contribution guidelines + + \r> We are currently only accepting color combinations from any vscode theme or which has good color combination to minimize bloating the themes collection. + + \r> Also note that if this theme is exclusively for your personal use then instead of adding it to our theme collection you can use card [customization options](https://github.com/anuraghazra/github-readme-stats#customization) + \r> Read our [contribution guidelines](https://github.com/anuraghazra/github-readme-stats/blob/master/CONTRIBUTING.md) for more info +`; + async function run() { try { const token = core.getInput("token"); @@ -48,7 +57,10 @@ async function run() { repo: "github-readme-stats", body: ` \rTheme preview (bot) - Cannot create theme preview + + \rCannot create theme preview + + ${themeContribGuidelines} `, issue_number: pullRequestId, }); @@ -58,10 +70,10 @@ async function run() { color.replace(/.*\:\s/, "").replace(/\"/g, ""), ); - let titleColor = colors[0]; - let iconColor = colors[1]; - let textColor = colors[2]; - let bgColor = colors[3]; + const titleColor = colors[0]; + const iconColor = colors[1]; + const textColor = colors[2]; + const bgColor = colors[3]; const url = `https://github-readme-stats.vercel.app/api?username=anuraghazra&title_color=${titleColor}&icon_color=${iconColor}&text_color=${textColor}&bg_color=${bgColor}&show_icons=true`; await octokit.issues.createComment({ @@ -75,7 +87,11 @@ async function run() { \ntext-color: #${textColor} \nbg-color: #${bgColor} + Link: ${url} + \r[![](${url})](${url}) + + ${themeContribGuidelines} `, issue_number: pullRequestId, }); diff --git a/themes/index.js b/themes/index.js index 124b5c0..e0a3cb1 100644 --- a/themes/index.js +++ b/themes/index.js @@ -249,20 +249,20 @@ const themes = { title_color: "82aaff", icon_color: "89ddff", text_color: "27e8a7", - bg_color: "242938" + bg_color: "242938", }, slateorange: { title_color: "faa627", icon_color: "faa627", text_color: "ffffff", - bg_color: "36393f" + bg_color: "36393f", }, kacho_ga: { title_color: "bf4a3f", icon_color: "a64833", text_color: "d9c8a9", - bg_color: "402b23" - } + bg_color: "402b23", + }, }; module.exports = themes;