From 8403a20d4769e45ffc9b2ef40203e742fc536a8a Mon Sep 17 00:00:00 2001 From: ChenKaiLiuG <141424456+ChenKaiLiuG@users.noreply.github.com> Date: Fri, 7 Mar 2025 23:47:12 +0800 Subject: [PATCH 1/4] Update fortune.json --- fortune_generator/json/fortune.json | 48 ++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/fortune_generator/json/fortune.json b/fortune_generator/json/fortune.json index 03e852d..17cbab2 100644 --- a/fortune_generator/json/fortune.json +++ b/fortune_generator/json/fortune.json @@ -185,6 +185,7 @@ "event": "烹飪", "description": [ "陶冶情操", + "廚藝提升", "養成飲食習慣" ] }, @@ -194,7 +195,30 @@ "挑戰自我", "促進健康" ] - } + }, + { + "event": "逛街", + "description": [ + "買到心儀的物品", + "發現新奇事物", + "心情愉快" + ] + }, + { + "event": "看電影", + "description": [ + "增加話題", + "與朋友同樂", + "放鬆心情" + ] + }, + { + "event": "聽音樂會", + "description": [ + "增加藝術氣息", + "放鬆身心, 享受音樂" + ] + }, ], "badFortunes": [ { @@ -314,5 +338,27 @@ "烏雲密布" ] } + { + "event": "野餐", + "description": [ + "被害蟲咬傷", + "天氣不晴朗" + ] + }, + { + "event": "看電影", + "description": [ + "場場爆滿", + "被旁人打擾", + "劇情大失所望" + ] + }, + { + "event": "烹飪", + "description": [ + "缺少食材,口味不佳", + "小心燙傷" + ] + }, ] } -- 2.49.1 From 6c5928b5c29660cce29bbcf800d2871f0285d73a Mon Sep 17 00:00:00 2001 From: tobiichi3227 <86729076+tobiichi3227@users.noreply.github.com> Date: Sat, 8 Mar 2025 15:59:00 +0800 Subject: [PATCH 2/4] Fix(Fortune): Missing fortune and themes check on CI (#64) * Fix(Fortune): Missing fortune and themes check on ci * Update check-fortune-generator-json.yml --- ...events.yml => check-fortune-generator-json.yml} | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) rename .github/workflows/{check-events.yml => check-fortune-generator-json.yml} (67%) diff --git a/.github/workflows/check-events.yml b/.github/workflows/check-fortune-generator-json.yml similarity index 67% rename from .github/workflows/check-events.yml rename to .github/workflows/check-fortune-generator-json.yml index 2616ba9..2fc6928 100644 --- a/.github/workflows/check-events.yml +++ b/.github/workflows/check-fortune-generator-json.yml @@ -1,4 +1,4 @@ -name: Check special events +name: Check fortune generator JSON files on: pull_request: @@ -6,12 +6,16 @@ on: - 'fortune_generator/json/custom_special.json' - 'fortune_generator/json/static_special.json' - 'fortune_generator/json/cyclical_special.json' + - 'fortune_generator/json/fortune.json' + - 'fortune_generator/json/themes.json' push: paths: - 'fortune_generator/json/custom_special.json' - 'fortune_generator/json/static_special.json' - 'fortune_generator/json/cyclical_special.json' + - 'fortune_generator/json/fortune.json' + - 'fortune_generator/json/themes.json' permissions: contents: read @@ -33,3 +37,11 @@ jobs: - name: Check Cyclical Special Events run: | python3 scripts/check-events.py fortune_generator/json/cyclical_special.json cyclical + + - name: Check Fortune + run: | + python3 scripts/check-fortune.py fortune_generator/json/fortune.json + + - name: Check Color Theme + run: | + python3 scripts/check-theme.py fortune_generator/json/themes.json -- 2.49.1 From 5a18da693965c01749f1ba25b1fe02094160c036 Mon Sep 17 00:00:00 2001 From: ChenKaiLiuG <141424456+ChenKaiLiuG@users.noreply.github.com> Date: Sat, 8 Mar 2025 23:15:51 +0800 Subject: [PATCH 3/4] Fix Update fortune.json --- fortune_generator/json/fortune.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fortune_generator/json/fortune.json b/fortune_generator/json/fortune.json index 17cbab2..00a299e 100644 --- a/fortune_generator/json/fortune.json +++ b/fortune_generator/json/fortune.json @@ -218,7 +218,7 @@ "增加藝術氣息", "放鬆身心, 享受音樂" ] - }, + } ], "badFortunes": [ { @@ -359,6 +359,6 @@ "缺少食材,口味不佳", "小心燙傷" ] - }, + } ] } -- 2.49.1 From 69bddfd6f0bcd589c504ec942c8654737dc9aa53 Mon Sep 17 00:00:00 2001 From: ChenKaiLiuG <141424456+ChenKaiLiuG@users.noreply.github.com> Date: Sat, 8 Mar 2025 23:18:23 +0800 Subject: [PATCH 4/4] Fix update fortune.json --- fortune_generator/json/fortune.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fortune_generator/json/fortune.json b/fortune_generator/json/fortune.json index 00a299e..0f1a0d4 100644 --- a/fortune_generator/json/fortune.json +++ b/fortune_generator/json/fortune.json @@ -337,7 +337,7 @@ "光害嚴重", "烏雲密布" ] - } + }, { "event": "野餐", "description": [ -- 2.49.1