mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2024-12-15 06:04:17 +08:00
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:
parent
3c7ba212b3
commit
120b9299b5
11
.github/workflows/preview-theme.yml
vendored
11
.github/workflows/preview-theme.yml
vendored
@ -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 }}
|
||||
|
@ -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})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user