From 120b9299b54a7ef5606db694c1589139391d0e49 Mon Sep 17 00:00:00 2001 From: Anurag Hazra Date: Sun, 10 Jan 2021 13:38:11 +0530 Subject: [PATCH] chore: improved bot preview (#798) * chore: added theme contribution guidelines in theme preview bot * chore: test * chore: format theme.js * chore: test * chore: fix indent * chore: use npm-install workflow * chore: compact color codes * chore: remove theme --- .github/workflows/preview-theme.yml | 11 +++-------- scripts/preview-theme.js | 9 +++------ 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/preview-theme.yml b/.github/workflows/preview-theme.yml index 431322b..eaec088 100644 --- a/.github/workflows/preview-theme.yml +++ b/.github/workflows/preview-theme.yml @@ -14,15 +14,10 @@ jobs: steps: - uses: actions/checkout@v1 - - name: setup node - uses: actions/setup-node@v1 - with: - node-version: "12.x" - - name: npm install, preview theme - run: | - npm install - npm run preview-theme + - name: Install & Preview Theme + - uses: bahmutov/npm-install@v1 + - run: npm run preview-theme env: CI: true PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} diff --git a/scripts/preview-theme.js b/scripts/preview-theme.js index fe5f96b..e809777 100644 --- a/scripts/preview-theme.js +++ b/scripts/preview-theme.js @@ -13,7 +13,7 @@ function getPrNumber() { } const themeContribGuidelines = ` - \r> Hi thanks for opening the theme contribution, please read our theme contribution guidelines + \r> Hi thanks for 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. @@ -82,12 +82,9 @@ async function run() { body: ` \rTheme preview (bot) - \ntitle-color: #${titleColor} - \nicon-color: #${iconColor} - \ntext-color: #${textColor} - \nbg-color: #${bgColor} + \ntitle_color: #${titleColor} | icon_color: #${iconColor} | text_color: #${textColor} | bg_color: #${bgColor} - Link: ${url} + \rLink: ${url} \r[![](${url})](${url})