From 52acbb89eb7df38a09683c9a7c1d1b843db6aa0f Mon Sep 17 00:00:00 2001 From: sean Date: Sat, 5 Jul 2025 06:32:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E5=88=86=E6=94=AF?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E7=AD=96=E7=95=A5=20-=20=E5=88=86=E7=A6=BBte?= =?UTF-8?q?st=E5=92=8Cdevelop=E8=81=8C=E8=B4=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 主要变更: - alpha.yml: 修改触发分支从develop改为test分支 - snapshot.yml: 强化develop专用职责,优化描述信息 - 创建test分支: 专门用于alpha版本发布 分支策略优化: - develop → @snapshot (开发快照,高频更新) - test → @alpha (精选功能测试版本) - staging → @beta (稳定预览版本) - main → @latest (正式发布版本) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .github/workflows/alpha.yml | 10 +++++----- .github/workflows/snapshot.yml | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index 6cc6320..ddbbf6b 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -3,7 +3,7 @@ name: Alpha Release on: push: branches: - - develop + - test workflow_dispatch: concurrency: ${{ github.workflow }}-${{ github.ref }} @@ -39,7 +39,7 @@ jobs: - name: Release alpha version run: | # 确保在正确的分支 - git checkout develop + git checkout test # 获取当前时间戳和短commit hash TIMESTAMP=$(date +%Y%m%d%H%M%S) @@ -81,7 +81,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, state: 'open', - base: 'develop' + base: 'test' }); const comment = `🚀 **Alpha版本已发布!** @@ -97,9 +97,9 @@ jobs: npx dpml-prompt@${version} action \`\`\` - 💡 你可以使用这个alpha版本测试最新的develop分支功能。 + 💡 你可以使用这个alpha版本测试最新的test分支功能。 - ⚠️ **迁移提示**: 推荐使用 \`@alpha\` 替代 \`@snapshot\` 进行开发测试。`; + 🧪 **Alpha定位**: 精选功能测试版本,适合功能验证和用户测试。`; // 为每个相关PR添加评论 for (const pr of prs) { diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index c008aa8..43e4b84 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -83,7 +83,7 @@ jobs: base: 'develop' }); - const comment = `🚀 **Snapshot版本已发布!** + const comment = `📸 **Snapshot版本已发布!** 📦 版本号: \`${version}\` 🔗 安装命令: \`npx dpml-prompt@${version} \` @@ -96,7 +96,8 @@ jobs: npx dpml-prompt@${version} action \`\`\` - 💡 你可以使用这个snapshot版本测试最新的develop分支功能。`; + ⚡ **Snapshot定位**: 开发快照版本,包含最新代码变更,供快速验证和开发测试使用。 + 💡 如需稳定测试版本,推荐使用 \`@alpha\` 或 \`@beta\`。`; // 为每个相关PR添加评论 for (const pr of prs) {