Loading...
Loading...
Compare original and translation side by side
maingit statusgit branch --show-current # Must be "main"
git status # Must be clean
git pull origin main # Must be up to date with remotemaingit statusgit branch --show-current # 必须为"main"
git status # 必须干净
git pull origin main # 必须与远程仓库保持同步undefinedundefined
Read the commits carefully and group them into:
- **Features** (new commands, new flags, new integrations)
- **Bug fixes** (corrected behavior)
- **Documentation** (new or updated docs)
- **Security** (dependency updates, vulnerability fixes)
- **Breaking changes** (removed flags, changed defaults)
For each significant feature, explore the actual implementation files to understand what it does. Don't just rely on commit messages — read the code so you can write accurate, detailed release notes.
仔细阅读提交记录,并将其归类为:
- **功能**(新命令、新标志、新集成)
- **Bug修复**(修正的行为问题)
- **文档**(新增或更新的文档)
- **安全**(依赖更新、漏洞修复)
- **破坏性变更**(移除的标志、修改的默认值)
对于每个重要功能,请查看实际的实现文件以了解其功能。不要仅依赖提交信息——阅读代码才能撰写准确、详细的发布说明。| Change type | Bump | Example |
|---|---|---|
| New features, new commands | MINOR | 0.23.0 -> 0.24.0 |
| Bug fixes only, no new features | PATCH | 0.24.0 -> 0.24.1 |
| Breaking changes (pre-1.0) | MINOR | 0.24.0 -> 0.25.0 |
| 变更类型 | 升级幅度 | 示例 |
|---|---|---|
| 新增功能、新命令 | MINOR | 0.23.0 -> 0.24.0 |
| 仅Bug修复,无新增功能 | PATCH | 0.24.0 -> 0.24.1 |
| 破坏性变更(1.0版本前) | MINOR | 0.24.0 -> 0.25.0 |
pkg/version/version.goVersionvar Version = "X.Y.Z" // update this-ldflagspkg/version/version.goVersionvar Version = "X.Y.Z" // 更新此值-ldflags[Unreleased]undefined[Unreleased]undefined
Also add the comparison link at the bottom of the file:
```markdown
[X.Y.Z]: https://github.com/dynatrace-oss/dtctl/compare/vPREVIOUS...vX.Y.Z
同时在文件底部添加对比链接:
```markdown
[X.Y.Z]: https://github.com/dynatrace-oss/dtctl/compare/vPREVIOUS...vX.Y.Z**double asterisks**—**双星号**—undefinedundefined
All tests must pass. If any fail, fix them before proceeding.
所有测试必须通过。如果有测试失败,请先修复再继续。git add CHANGELOG.md pkg/version/version.go
git commit -m "release vX.Y.Z: short summary of key features"release vX.Y.Z: feature1, feature2, feature3git add CHANGELOG.md pkg/version/version.go
git commit -m "release vX.Y.Z: 关键功能简短摘要"release vX.Y.Z: feature1, feature2, feature3git push origin main
git tag vX.Y.Z
git push origin vX.Y.Z.github/workflows/release.ymldynatrace-oss/homebrew-tapgit push origin main
git tag vX.Y.Z
git push origin vX.Y.Z.github/workflows/release.ymldynatrace-oss/homebrew-taphomebrew_casks.goreleaser.yamlskip_upload: auto.goreleaser.yamlhomebrew_casksskip_upload: autogh release edit vX.Y.Z --notes "$(cat <<'EOF'
... release notes here ...
EOF
)"gh release edit vX.Y.Z --notes "$(cat <<'EOF'
... 发布说明内容 ...
EOF
)"gh release view vPREVIOUSundefinedgh release view vPREVIOUSundefinedundefinedundefined### Heading## Bug Fixes## Install / Upgrade**Full Changelog**## Securitygh release view v0.23.0gh release view v0.22.0### 标题## Bug修复## 安装/升级**完整变更日志**## 安全gh release view v0.23.0gh release view v0.22.0mainpkg/version/version.goCHANGELOG.mdgo test ./...make buildmainorigin/mainvX.Y.Zgh release editmainpkg/version/version.goCHANGELOG.mdgo test ./...make buildmainorigin/mainvX.Y.Zgh release edit