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
This commit is contained in:
Anurag Hazra 2021-01-10 13:38:11 +05:30 committed by GitHub
parent 3c7ba212b3
commit 120b9299b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 14 deletions

View File

@ -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 }}

View File

@ -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: <code>#${titleColor}</code>
\nicon-color: <code>#${iconColor}</code>
\ntext-color: <code>#${textColor}</code>
\nbg-color: <code>#${bgColor}</code>
\ntitle_color: <code>#${titleColor}</code> | icon_color: <code>#${iconColor}</code> | text_color: <code>#${textColor}</code> | bg_color: <code>#${bgColor}</code>
Link: ${url}
\rLink: ${url}
\r[![](${url})](${url})