chore(observability): clarify quick review completion copy
All checks were successful
CD Pipeline / deploy (push) Successful in 1m4s

This commit is contained in:
OoO
2026-05-06 19:49:28 +08:00
parent dc7fe371bd
commit 308efdce25
23 changed files with 863 additions and 341 deletions

View File

@@ -20,6 +20,7 @@ OBSERVABILITY_UI_GUARD="$PROJECT_ROOT/scripts/check_observability_ui.py"
OBSERVABILITY_PAGE_SMOKE="$PROJECT_ROOT/scripts/check_observability_pages.py"
OBSERVABILITY_QA_SUITE="$PROJECT_ROOT/scripts/check_observability_suite.sh"
OBSERVABILITY_CSS_SYNC="$PROJECT_ROOT/scripts/sync_observability_css.py"
REVIEW_REPORT_HINT=0
# 顯示標題
echo -e "${BLUE}========================================${NC}"
@@ -151,10 +152,12 @@ if [ $# -eq 0 ]; then
case $choice in
1)
echo -e "${GREEN}🚀 開始自動Review暫存檔案...${NC}"
REVIEW_REPORT_HINT=1
run_code_review --auto --type basic
;;
2)
echo -e "${GREEN}🚀 開始Review所有變更檔案...${NC}"
REVIEW_REPORT_HINT=1
run_code_review --type basic
;;
3)
@@ -162,6 +165,7 @@ if [ $# -eq 0 ]; then
read -r files_input
if [ -n "$files_input" ]; then
echo -e "${GREEN}🚀 開始Review指定檔案...${NC}"
REVIEW_REPORT_HINT=1
run_code_review --files $files_input --type basic
else
echo -e "${RED}❌ 未指定檔案${NC}"
@@ -170,10 +174,12 @@ if [ $# -eq 0 ]; then
;;
4)
echo -e "${GREEN}🛡️ 開始安全檢查...${NC}"
REVIEW_REPORT_HINT=1
run_code_review --auto --type security
;;
5)
echo -e "${GREEN}⚡ 開始效能檢查...${NC}"
REVIEW_REPORT_HINT=1
run_code_review --auto --type performance
;;
6)
@@ -197,14 +203,17 @@ else
# 有指定檔案直接Review
echo -e "${GREEN}🚀 開始Review指定檔案...${NC}"
echo -e "${BLUE}檔案:$@${NC}"
REVIEW_REPORT_HINT=1
run_code_review --files "$@" --type basic
fi
# 檢查執行結果
if [ $? -eq 0 ]; then
echo -e "${GREEN}Code Review 完成!${NC}"
echo -e "${BLUE}📄 Review報告位置$PROJECT_ROOT/logs/${NC}"
echo -e "${GREEN}Quick Review / QA 完成!${NC}"
if [ "$REVIEW_REPORT_HINT" -eq 1 ]; then
echo -e "${BLUE}📄 Review報告位置$PROJECT_ROOT/logs/${NC}"
fi
else
echo -e "${RED}Code Review 失敗!${NC}"
echo -e "${RED}Quick Review / QA 失敗!${NC}"
exit 1
fi