affcfa0c72
**主要调整:** 1. 重命名将军工作区目录: - data-engineering → zhaoyun-data (赵云数据工程) - risk-management → guanyu-risk (关羽风控管理) - platform → jiangwei-platform (姜维平台) - technical-strategy → zhangfei-technical (张飞技术策略) 2. 创建新目录: - archive/ (归档目录) - simayi-quality/ (司马懿质量保证) - pangtong-value/ (庞统价值投资) 3. 移动内容: - value-investing → pangtong-value/research (庞统价值投资) - running_data → zhaoyun-data/data (运行数据) - 文件任务管理系统文档 → archive/file-task-system 4. 清理文件: - 删除所有日志文件 - 删除agent脚本 - 删除knowledge-base (使用统一知识库) 5. 创建标准结构: - 各将军目录下创建research/, scripts/, reports/, references/子目录 6. 更新.gitignore: - 排除日志文件和临时文件 **依据:** management/workflow-rules.md **制定:** 庞统(凤雏) **审核:** 诸葛亮
68 lines
1.5 KiB
Bash
Executable File
68 lines
1.5 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# =============================================================================
|
|
# sanguo_quant_live 调研文档更新自动化脚本
|
|
# 作者: 姜维(后勤总督)
|
|
# 版本: v1.0
|
|
# =============================================================================
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
|
|
# 颜色定义
|
|
RED='\033[0;31m'
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
BLUE='\033[0;34m'
|
|
NC='\033[0m'
|
|
|
|
print_info() {
|
|
echo -e "${BLUE}[INFO]${NC} $1"
|
|
}
|
|
|
|
print_success() {
|
|
echo -e "${GREEN}[SUCCESS]${NC} $1"
|
|
}
|
|
|
|
print_warning() {
|
|
echo -e "${YELLOW}[WARNING]${NC} $1"
|
|
}
|
|
|
|
print_error() {
|
|
echo -e "${RED}[ERROR]${NC} $1"
|
|
}
|
|
|
|
cd "$PROJECT_ROOT"
|
|
|
|
print_info "检查调研文档..."
|
|
RESEARCH_DOC="platform/research/ALIBABA_CLOUD_DEPLOYMENT_RESEARCH.md"
|
|
|
|
if [ ! -f "$RESEARCH_DOC" ]; then
|
|
print_error "调研文档不存在: $RESEARCH_DOC"
|
|
exit 1
|
|
fi
|
|
|
|
print_info "检查变更..."
|
|
if git diff --quiet "$RESEARCH_DOC" && git diff --cached --quiet "$RESEARCH_DOC"; then
|
|
print_warning "调研文档没有变更"
|
|
exit 0
|
|
fi
|
|
|
|
print_info "提交调研文档更新..."
|
|
git add "$RESEARCH_DOC"
|
|
|
|
# 生成 commit message
|
|
TIMESTAMP=$(date +"%Y-%m-%d %H:%M:%S")
|
|
git commit -m "docs(platform): 姜维更新阿里云部署调研 - $TIMESTAMP
|
|
|
|
调研内容更新:
|
|
- 最小费用方案已完善
|
|
- 成本优化策略已更新
|
|
- 架构设计已优化"
|
|
|
|
print_info "推送到 Gitee..."
|
|
git push origin main
|
|
|
|
print_success "调研文档更新和推送完成!"
|