Patch for generate changelog docs yaml file (#18496)

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
g-samroberts
2026-02-06 19:13:29 -08:00
committed by GitHub
parent 9178b31629
commit 6f1a5bf81d
2 changed files with 16 additions and 11 deletions
+10 -3
View File
@@ -99,9 +99,16 @@ Write concise summaries including the primary PR and author
4. Do not add the "New Contributors" section. 4. Do not add the "New Contributors" section.
5. Update the "Full changelog:" link with the previous version and the new 5. Update the "Full changelog:" link by doing one of following:
version, unless it is a patch or a bug fix, in which case simply update the
link's new version and keep the previous version the same. If it is a patch or bug fix with few changes, retain the original link
but replace the latter version with the new version. For example, if the
patch is version is "v0.28.1", replace the latter version:
"https://github.com/google-gemini/gemini-cli/compare/v0.27.0...v0.28.0" with
"https://github.com/google-gemini/gemini-cli/compare/v0.27.0...v0.28.1".
Otherwise, for minor and major version changes, replace the link with the
one included at the end of the changelog data.
6. Ensure lines are wrapped to 80 characters. 6. Ensure lines are wrapped to 80 characters.
+6 -8
View File
@@ -53,29 +53,26 @@ jobs:
echo "${BODY}" >> "$GITHUB_OUTPUT" echo "${BODY}" >> "$GITHUB_OUTPUT"
echo 'EOF' >> "$GITHUB_OUTPUT" echo 'EOF' >> "$GITHUB_OUTPUT"
env: env:
GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}' GH_TOKEN: '${{ secrets.GEMINI_CLI_ROBOT_GITHUB_PAT }}'
- name: 'Generate Changelog with Gemini' - name: 'Generate Changelog with Gemini'
uses: 'google-github-actions/run-gemini-cli@a3bf79042542528e91937b3a3a6fbc4967ee3c31' # ratchet:google-github-actions/run-gemini-cli@v0 uses: 'google-github-actions/run-gemini-cli@a3bf79042542528e91937b3a3a6fbc4967ee3c31' # ratchet:google-github-actions/run-gemini-cli@v0
env:
VERSION: '${{ steps.release_info.outputs.VERSION }}'
RAW_CHANGELOG: '${{ steps.release_info.outputs.RAW_CHANGELOG }}'
with: with:
gemini_api_key: '${{ secrets.GEMINI_API_KEY }}' gemini_api_key: '${{ secrets.GEMINI_API_KEY }}'
prompt: | prompt: |
Activate the 'docs-changelog' skill. Activate the 'docs-changelog' skill.
**Release Information:** **Release Information:**
- New Version: $VERSION - New Version: ${{ steps.release_info.outputs.VERSION }}
- Release Date: $TIME - Release Date: ${{ steps.release_info.outputs.TIME }}
- Raw Changelog Data: $RAW_CHANGELOG - Raw Changelog Data: ${{ steps.release_info.outputs.RAW_CHANGELOG }}
Execute the release notes generation process using the information provided. Execute the release notes generation process using the information provided.
- name: 'Create Pull Request' - name: 'Create Pull Request'
uses: 'peter-evans/create-pull-request@v6' uses: 'peter-evans/create-pull-request@v6'
with: with:
token: '${{ secrets.GITHUB_TOKEN }}' token: '${{ secrets.GEMINI_CLI_ROBOT_GITHUB_PAT }}'
commit-message: 'docs(changelog): update for ${{ steps.release_info.outputs.VERSION }}' commit-message: 'docs(changelog): update for ${{ steps.release_info.outputs.VERSION }}'
title: 'Changelog for ${{ steps.release_info.outputs.VERSION }}' title: 'Changelog for ${{ steps.release_info.outputs.VERSION }}'
body: | body: |
@@ -83,4 +80,5 @@ jobs:
Please review and merge. Please review and merge.
branch: 'changelog-${{ steps.release_info.outputs.VERSION }}' branch: 'changelog-${{ steps.release_info.outputs.VERSION }}'
team-reviewers: 'gemini-cli-docs, gemini-cli-maintainers'
delete-branch: true delete-branch: true