Compare commits

...
Author SHA1 Message Date
anuraghazra 084ce7fc8d test theme labeler
Test / build (push) Canceled after 0s
2020-08-08 21:17:11 +05:30
anuraghazra 171f970bee fix: conflict 2020-08-05 21:55:27 +05:30
anuraghazra 5514f4e8f1 test: theme 2020-08-05 21:52:06 +05:30
anuraghazra ebc8ce4b7d test: theme 2020-08-05 21:50:46 +05:30
Anurag Hazra bec23af5f9 Merge branch 'master' into theme-preview-script 2020-08-05 21:49:15 +05:30
anuraghazra 0582a2adae fix: token fix 2020-08-05 21:45:52 +05:30
anuraghazra 683b919c20 fix: preview theme 2020-08-02 21:58:27 +05:30
anuraghazra 70f11b0018 fix: preview theme script 2020-08-02 21:45:08 +05:30
anuraghazra c6e2a7998b comment on pr script 2020-08-02 21:36:02 +05:30
anuraghazra dfe91e3596 test current pr 2020-08-02 21:26:47 +05:30
anuraghazra 777a3ae786 fix: workflow 2020-08-02 21:19:09 +05:30
anuraghazra 1fa476ac6e chore: testing theme preview script 2020-08-02 21:11:39 +05:30
3 changed files with 13 additions and 5 deletions
+2 -1
View File
@@ -6,7 +6,6 @@ on:
branches:
- master
- theme-preview-script
paths:
- "themes/index.js"
jobs:
@@ -27,3 +26,5 @@ jobs:
env:
CI: true
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
+2 -1
View File
@@ -15,7 +15,8 @@ const parsePullRequestId = (githubRef) => {
async function run() {
try {
const octokit = github.getOctokit(process.env.PERSONAL_TOKEN);
const token = core.getInput("token");
const octokit = github.getOctokit(token || process.env.PERSONAL_TOKEN);
const pullRequestId = parsePullRequestId(process.env.GITHUB_REF);
let res = await octokit.pulls.get({
+9 -3
View File
@@ -113,19 +113,19 @@ const themes = {
text_color: "0cf574",
bg_color: "040f0f",
},
"algolia": {
algolia: {
title_color: "00AEFF",
icon_color: "2DDE98",
text_color: "FFFFFF",
bg_color: "050F2C",
},
"great-gatsby":{
"great-gatsby": {
title_color: "ffa726",
icon_color: "ffb74d",
text_color: "ffd95b",
bg_color: "000000",
},
"bear": {
bear: {
title_color: "e03c8a",
icon_color: "00AEFF",
text_color: "bcb28d",
@@ -149,6 +149,12 @@ const themes = {
icon_color: "88c0d0",
bg_color: "2e3440",
},
test: {
title_color: "81a1c1",
text_color: "d8dee9",
icon_color: "88c0d0",
bg_color: "2e3440",
},
};
module.exports = themes;