Unverified Commit 120b9299 authored by Anurag Hazra's avatar Anurag Hazra Committed by GitHub
Browse files

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
parent 3c7ba212
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -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 }}
+3 −6
Original line number Diff line number Diff line
@@ -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})