feat(action): changelog/update - Update CHANGELOG.md with new version
@aRustyDev 已经在做这个了。
开始于 2026年1月27日。
评估
这个 Issue 还没有评估数据。
描述
Parent Epic
Part of #22 (Atomic Release Pipeline Actions)
Priority
P1 - Release support for W5/W6
Description
Create a composite action that updates a CHANGELOG.md file with a new version section.
Inputs
| Input | Required | Default | Description |
|---|---|---|---|
changelog-path |
Yes | - | Path to CHANGELOG.md |
version |
Yes | - | Version number |
content |
Yes | - | Changelog content to insert |
date |
No | today |
Release date (YYYY-MM-DD) |
create-if-missing |
No | true |
Create file if it doesn't exist |
Outputs
| Output | Description |
|---|---|
updated |
"true" if file was modified |
created |
"true" if file was created |
Usage Example
- uses: arustydev/gha/actions/changelog/generate@v1
id: gen
- uses: arustydev/gha/actions/changelog/update@v1
with:
changelog-path: charts/my-chart/CHANGELOG.md
version: "1.3.0"
content: ${{ steps.gen.outputs.changelog }}
Implementation Notes
- Inserts new version section after header
- Creates Keep-a-Changelog format file if missing
- Preserves existing content
- Handles [Unreleased] section if present
Source Reference
helm-charts/.github/scripts/version-bump.sh:
generate_changelog()- file creation and update logic
Related
- #35 - changelog/extract-version (complementary)
- #36 - changelog/generate (complementary)
- 主要语言
- Shell
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aRustyDev/gh 的其他 Issue
-
dependencies github-actions
难度 1/5 1 小时以内 新手友好度 10/100
-
dependencies github-actions
难度 1/5 1 小时以内 新手友好度 15/100
-
dependencies github-actions
难度 1/5 1 小时以内 新手友好度 50/100
-
dependencies github-actions
难度 2/5 1-3 小时 新手友好度 20/100
-
dependencies github-actions
难度 2/5 1-3 小时 新手友好度 10/100
相似的 Issue
-
package-update
难度 2/5 1-3 小时 新手友好度 78/100
-
bug needs triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
vllm-project/vllm-metal#841 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
obra/superpowers#2394 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
CachyOS/cachyos-aur-derived#772 ·
维护者通常 1 天内回复