Procedure: Updating Changelog for New Releases
Objective
To standardize the process of updating changelog files (latest.md,
preview.md, index.md) based on automated release information.
Inputs
- version: The release version string (e.g.,
v0.28.0,
v0.29.0-preview.2).
- TIME: The release timestamp (e.g.,
2026-02-12T20:33:15Z).
- BODY: The raw markdown release notes, containing a "What's Changed"
section and a "Full Changelog" link.
Guidelines for latest.md and preview.md Highlights
- Aim for 3-5 key highlight points.
- Each highlight point must start with a bold-typed title that summarizes the
change (e.g.,
**New Feature:** A brief description...).
- Prioritize summarizing new features over other changes like bug fixes or
chores.
- Avoid mentioning features that are "experimental" or "in preview" in
Stable Releases.
- DO NOT include PR numbers, links, or author names in these highlights.
- Refer to
.gemini/skills/docs-changelog/references/highlights_examples.md
for the correct style and tone.
Initial Processing
- Analyze Version: Determine the release path based on the
version
string.
- If
version contains "nightly", STOP. No changes are made.
- If
version ends in .0, follow the Path A: New Minor Version
procedure.
- If
version does not end in .0, follow the Path B: Patch Version
procedure.
- Process Time: Convert the
TIME input into two formats for later use:
yyyy-mm-dd and Month dd, yyyy.
- Process Body:
- Save the incoming
BODY content to a temporary file for processing.
- In the "What's Changed" section of the temporary file, reformat all pull
request URLs to be markdown links with the PR number as the text (e.g.,
[#12345](URL)).
- If a "New Contributors" section exists, delete it.
- Preserve the "Full Changelog" link. The processed content of this
temporary file will be used in subsequent steps.
Path A: New Minor Version
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.
A.1: Stable Release (e.g., 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:
- Generate a concise announcement summarizing the most important changes.
Each announcement entry must start with a bold-typed title that
summarizes the change.
- Important: The format for this announcement is unique. You must
use the existing announcements in
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.
- Add this new announcement to the top of
docs/changelogs/index.md.
Create Highlights and Update latest.md:
- Generate a comprehensive "Highlights" section, following the guidelines
in the "Guidelines for
latest.md and preview.md Highlights" section
above.
- Take the content from
.gemini/skills/docs-changelog/references/latest_template.md.
- Populate the template with the
version, release_date, generated
highlights, and the processed content from the temporary file.
- Completely replace the contents of
docs/changelogs/latest.md with
the populated template.
A.2: Preview Release (e.g., v0.29.0-preview.0)
- Update
preview.md:
- Generate a comprehensive "Highlights" section, following the highlight
guidelines.
- Take the content from
.gemini/skills/docs-changelog/references/preview_template.md.
- Populate the template with the
version, release_date, generated
highlights, and the processed content from the temporary file.
- Completely replace the contents of
docs/changelogs/preview.md
with the populated template.
Path B: Patch Version
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.
B.1: Stable Patch (e.g., v0.28.1)
- Target File:
docs/changelogs/latest.md
- Perform the following edits on the target file:
Update 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
B.2: Preview Patch (e.g., v0.29.0-preview.3)
- Target File:
docs/changelogs/preview.md
- Perform the following edits on the target file:
Update 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
Finalize
- After making changes, run
npm run format ONLY to ensure consistency.
- Delete any temporary files created during the process.
1---2name: docs-changelog3description: Generates and formats changelog files for a new release based on provided version and raw changelog data.4pipeline-status: new5metadata:6 source: https://skillmd.com/skills/delorenj/docs-changelog7---89# Procedure: Updating Changelog for New Releases1011## Objective1213To standardize the process of updating changelog files (`latest.md`,14`preview.md`, `index.md`) based on automated release information.1516## Inputs1718- **version**: The release version string (e.g., `v0.28.0`,19 `v0.29.0-preview.2`).20- **TIME**: The release timestamp (e.g., `2026-02-12T20:33:15Z`).21- **BODY**: The raw markdown release notes, containing a "What's Changed"22 section and a "Full Changelog" link.2324## Guidelines for `latest.md` and `preview.md` Highlights2526- Aim for **3-5 key highlight points**.27- Each highlight point must start with a bold-typed title that summarizes the28 change (e.g., `**New Feature:** A brief description...`).29- **Prioritize** summarizing new features over other changes like bug fixes or30 chores.31- **Avoid** mentioning features that are "experimental" or "in preview" in32 Stable Releases.33- **DO NOT** include PR numbers, links, or author names in these highlights.34- Refer to `.gemini/skills/docs-changelog/references/highlights_examples.md`35 for the correct style and tone.3637## Initial Processing38391. **Analyze Version**: Determine the release path based on the `version`40 string.41 - If `version` contains "nightly", **STOP**. No changes are made.42 - If `version` ends in `.0`, follow the **Path A: New Minor Version**43 procedure.44 - If `version` does not end in `.0`, follow the **Path B: Patch Version**45 procedure.462. **Process Time**: Convert the `TIME` input into two formats for later use:47 `yyyy-mm-dd` and `Month dd, yyyy`.483. **Process Body**:49 - Save the incoming `BODY` content to a temporary file for processing.50 - In the "What's Changed" section of the temporary file, reformat all pull51 request URLs to be markdown links with the PR number as the text (e.g.,52 `[#12345](URL)`).53 - If a "New Contributors" section exists, delete it.54 - Preserve the "**Full Changelog**" link. The processed content of this55 temporary file will be used in subsequent steps.5657---5859## Path A: New Minor Version6061*Use this path if the version number ends in `.0`.*6263**Important:** Based on the version, you must choose to follow either section64A.1 for stable releases or A.2 for preview releases. Do not follow the65instructions for the other section.6667### A.1: Stable Release (e.g., `v0.28.0`)6869For a stable release, you will generate two distinct summaries from the70changelog: a concise **announcement** for the main changelog page, and a more71detailed **highlights** section for the release-specific page.72731. **Create the Announcement for `index.md`**:74 - Generate a concise announcement summarizing the most important changes.75 Each announcement entry must start with a bold-typed title that76 summarizes the change.77 - **Important**: The format for this announcement is unique. You **must**78 use the existing announcements in `docs/changelogs/index.md` and the79 example within80 `.gemini/skills/docs-changelog/references/index_template.md` as your81 guide. This format includes PR links and authors. Stick to 1 or 2 PR82 links and authors.83 - Add this new announcement to the top of `docs/changelogs/index.md`.84852. **Create Highlights and Update `latest.md`**:86 - Generate a comprehensive "Highlights" section, following the guidelines87 in the "Guidelines for `latest.md` and `preview.md` Highlights" section88 above.89 - Take the content from90 `.gemini/skills/docs-changelog/references/latest_template.md`.91 - Populate the template with the `version`, `release_date`, generated92 `highlights`, and the processed content from the temporary file.93 - **Completely replace** the contents of `docs/changelogs/latest.md` with94 the populated template.9596### A.2: Preview Release (e.g., `v0.29.0-preview.0`)97981. **Update `preview.md`**:99 - Generate a comprehensive "Highlights" section, following the highlight100 guidelines.101 - Take the content from102 `.gemini/skills/docs-changelog/references/preview_template.md`.103 - Populate the template with the `version`, `release_date`, generated104 `highlights`, and the processed content from the temporary file.105 - **Completely replace** the contents of `docs/changelogs/preview.md`106 with the populated template.107108---109110## Path B: Patch Version111112*Use this path if the version number does **not** end in `.0`.*113114**Important:** Based on the version, you must choose to follow either section115B.1 for stable patches or B.2 for preview patches. Do not follow the116instructions for the other section.117118### B.1: Stable Patch (e.g., `v0.28.1`)119120- **Target File**: `docs/changelogs/latest.md`121- Perform the following edits on the target file:122 1. Update the version in the main header. The line should read,123 `# Latest stable release: {{version}}`124 2. Update the rease date. The line should read,125 `Released: {{release_date_month_dd_yyyy}}`126 3. Determine if a "What's Changed" section exists in the temporary file127 If so, continue to step 4. Otherwise, skip to step 5.128 4. **Prepend** the processed "What's Changed" list from the temporary file129 to the existing "What's Changed" list in `latest.md`. Do not change or130 replace the existing list, **only add** to the beginning of it.131 5. In the "Full Changelog", edit **only** the end of the URL. Identify the132 last part of the URL that looks like `...{previous_version}` and update133 it to be `...{version}`.134135 Example: assume the patch version is `v0.29.1`. Change136 `Full Changelog: https://github.com/google-gemini/gemini-cli/compare/v0.28.2…v0.29.0`137 to138 `Full Changelog: https://github.com/google-gemini/gemini-cli/compare/v0.28.2…v0.29.1`139140### B.2: Preview Patch (e.g., `v0.29.0-preview.3`)141142- **Target File**: `docs/changelogs/preview.md`143- Perform the following edits on the target file:144 1. Update the version in the main header. The line should read,145 `# Preview release: {{version}}`146 2. Update the rease date. The line should read,147 `Released: {{release_date_month_dd_yyyy}}`148 3. Determine if a "What's Changed" section exists in the temporary file149 If so, continue to step 4. Otherwise, skip to step 5.150 4. **Prepend** the processed "What's Changed" list from the temporary file151 to the existing "What's Changed" list in `preview.md`. Do not change or152 replace the existing list, **only add** to the beginning of it.153 5. In the "Full Changelog", edit **only** the end of the URL. Identify the154 last part of the URL that looks like `...{previous_version}` and update155 it to be `...{version}`.156157 Example: assume the patch version is `v0.29.0-preview.1`. Change158 `Full Changelog: https://github.com/google-gemini/gemini-cli/compare/v0.28.2…v0.29.0-preview.0`159 to160 `Full Changelog: https://github.com/google-gemini/gemini-cli/compare/v0.28.2…v0.29.0-preview.1`161162---163164## Finalize165166- After making changes, run `npm run format` ONLY to ensure consistency.167- Delete any temporary files created during the process.