Loading...
Loading...
Compare original and translation side by side
auto-tag-release.yml| Type | Use Case | Frequency | Source Branch | PR Title Format | Version |
|---|---|---|---|---|---|
| Minor | Feature iteration release | ~Every 4 weeks | canary | | Manually set |
| Patch | Weekly release / hotfix / model / DB migration | ~Weekly or as needed | canary or main | Custom (e.g. | Auto patch +1 |
auto-tag-release.yml| 类型 | 适用场景 | 频率 | 源分支 | PR标题格式 | 版本号规则 |
|---|---|---|---|---|---|
| Minor | 功能迭代发布 | 约每4周一次 | canary | | 手动指定 |
| Patch | 每周发布/热修复/模型/数据库迁移 | 每周或按需进行 | canary或main | 自定义(如 | 自动补丁号+1 |
git checkout canary
git pull origin canary
git checkout -b release/v{version}
git push -u origin release/v{version}package.jsongh pr create \
--title "🚀 release: v{version}" \
--base main \
--head release/v{version} \
--body "## 📦 Release v{version} ..."[!IMPORTANT]: The PR title must strictly match theformat. CI uses a regex on this title to determine the exact version number.🚀 release: v{x.y.z}
git checkout canary
git pull origin canary
git checkout -b release/v{version}
git push -u origin release/v{version}package.jsongh pr create \
--title "🚀 release: v{version}" \
--base main \
--head release/v{version} \
--body "## 📦 Release v{version} ..."[!IMPORTANT]: PR标题必须严格符合格式。CI会通过正则匹配该标题来确定具体版本号。🚀 release: v{x.y.z}
bun run release:branch # Interactive
bun run release:branch --minor # Directly specify minorbun run release:branch # 交互式创建
bun run release:branch --minor # 直接指定次要版本| Scenario | Source Branch | Branch Naming | Description |
|---|---|---|---|
| Weekly Release | canary | | Weekly release train, canary → main |
| Bug Hotfix | main | | Emergency bug fix |
| New Model Launch | canary | Community PR merged directly | New model launch, triggered by PR title prefix |
| DB Schema Migration | canary | | Database migration, requires dedicated changelog |
reference/patch-release-scenarios.md| 场景 | 源分支 | 分支命名规则 | 描述 |
|---|---|---|---|
| 每周发布 | canary | | 每周例行发布,将canary合并至main分支 |
| 漏洞热修复 | main | | 紧急漏洞修复 |
| 新模型上线 | canary | 社区PR直接合并 | 新模型上线,通过PR标题前缀自动触发 |
| 数据库Schema迁移 | canary | | 数据库迁移,需编写专用变更日志 |
reference/patch-release-scenarios.mdbun run hotfix:branch # Hotfix scenariobun run hotfix:branch # 热修复场景专用🚀 release: v{x.y.z}🚀 release: v{x.y.z}hotfix/*release/*style💄 stylefeat✨ featfix🐛 fixrefactor♻️ refactorhotfix🐛 hotfix🩹 hotfixbuild👷 buildhotfix/*release/*style💄 stylefeat✨ featfix🐛 fixrefactor♻️ refactorhotfix🐛 hotfix🩹 hotfixbuild👷 builddocschorecitestdocschorecitest🔖 chore(release): release version v{x.y.z} [skip ci]v{x.y.z}🔖 chore(release): release version v{x.y.z} [skip ci]v{x.y.z}package.jsonrelease/v{version}🚀 release: v{version}package.jsonrelease/v{version}🚀 release: v{version}reference/patch-release-scenarios.mdrelease/weekly-{YYYYMMDD}git log main..canary🚀 release: 20260222hotfix/🐛 fix: ...featstylerelease/db-migration-{name}reference/patch-release-scenarios.mdrelease/weekly-{YYYYMMDD}git log main..canary🚀 release: 20260222hotfix/🐛 fix: ...featstylerelease/db-migration-{name}git log main..canary --onelinegit diff main...canary --statgit log main..canary --onelinegit diff main...canary --statreference/changelog-example/weekly-release.mdreference/changelog-example/db-migration.mdreference/changelog-example/weekly-release.mdreference/changelog-example/db-migration.md**bold**git log**加粗**git log