Generates and formats changelog files for a new release based on provided version and raw changelog data.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-docs-changelog-c006d477df20 ,按照其中的说明把「docs-changelog」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
To standardize the process of updating changelog files (latest.md,
preview.md, index.md) based on automated release information.
v0.28.0,
v0.29.0-preview.2).2026-02-12T20:33:15Z).latest.md and preview.md Highlights**New Feature:** A brief description...)..gemini/skills/docs-changelog/references/highlights_examples.md
for the correct style and tone.version
string.
version contains "nightly", STOP. No changes are made.version ends in .0, follow the Path A: New Minor Version
procedure.version does not end in .0, follow the Path B: Patch Version
procedure.TIME input into two formats for later use:
yyyy-mm-dd and Month dd, yyyy.BODY content to a temporary file for processing.[#12345](URL)).Use this path if the version number ends in .0.
Important: Based on the version, you must choose to follow either section A.1 for stable releases or A.2 for preview releases. Do not follow the instructions for the other section.
v0.28.0)For a stable release, you will generate two distinct summaries from the changelog: a concise announcement for the main changelog page, and a more detailed highlights section for the release-specific page.
Create the Announcement for index.md:
docs/changelogs/index.md and the
example within
.gemini/skills/docs-changelog/references/index_template.md as your
guide. This format includes PR links and authors. Stick to 1 or 2 PR
links and authors.docs/changelogs/index.md.Create Highlights and Update latest.md:
latest.md and preview.md Highlights" section
above..gemini/skills/docs-changelog/references/latest_template.md.version, release_date, generated
highlights, and the processed content from the temporary file.docs/changelogs/latest.md with
the populated template.v0.29.0-preview.0)preview.md:
.gemini/skills/docs-changelog/references/preview_template.md.version, release_date, generated
highlights, and the processed content from the temporary file.docs/changelogs/preview.md
with the populated template.Use this path if the version number does not end in .0.
Important: Based on the version, you must choose to follow either section B.1 for stable patches or B.2 for preview patches. Do not follow the instructions for the other section.
v0.28.1)docs/changelogs/latest.mdUpdate the version in the main header. The line should read,
# Latest stable release: {{version}}
Update the rease date. The line should read,
Released: {{release_date_month_dd_yyyy}}
Determine if a "What's Changed" section exists in the temporary file If so, continue to step 4. Otherwise, skip to step 5.
Prepend the processed "What's Changed" list from the temporary file
to the existing "What's Changed" list in latest.md. Do not change or
replace the existing list, only add to the beginning of it.
In the "Full Changelog", edit only the end of the URL. Identify the
last part of the URL that looks like ...{previous_version} and update
it to be ...{version}.
Example: assume the patch version is v0.29.1. Change
Full Changelog: https://github.com/google-gemini/gemini-cli/compare/v0.28.2…v0.29.0
to
Full Changelog: https://github.com/google-gemini/gemini-cli/compare/v0.28.2…v0.29.1
v0.29.0-preview.3)docs/changelogs/preview.mdUpdate the version in the main header. The line should read,
# Preview release: {{version}}
Update the rease date. The line should read,
Released: {{release_date_month_dd_yyyy}}
Determine if a "What's Changed" section exists in the temporary file If so, continue to step 4. Otherwise, skip to step 5.
Prepend the processed "What's Changed" list from the temporary file
to the existing "What's Changed" list in preview.md. Do not change or
replace the existing list, only add to the beginning of it.
In the "Full Changelog", edit only the end of the URL. Identify the
last part of the URL that looks like ...{previous_version} and update
it to be ...{version}.
Example: assume the patch version is v0.29.0-preview.1. Change
Full Changelog: https://github.com/google-gemini/gemini-cli/compare/v0.28.2…v0.29.0-preview.0
to
Full Changelog: https://github.com/google-gemini/gemini-cli/compare/v0.28.2…v0.29.0-preview.1
npm run format fails, it may be necessary to run
npm install first to ensure all formatting dependencies are available.
Then, run npm run format to ensure consistency.