diff --git a/.gemini/skills/docs-changelog/SKILL.md b/.gemini/skills/docs-changelog/SKILL.md index 2145ae2123..7a3d0cac4e 100644 --- a/.gemini/skills/docs-changelog/SKILL.md +++ b/.gemini/skills/docs-changelog/SKILL.md @@ -99,9 +99,16 @@ Write concise summaries including the primary PR and author 4. Do not add the "New Contributors" section. -5. Update the "Full changelog:" link with the previous version and the new -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. +5. Update the "Full changelog:" link by doing one of following: + + 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. diff --git a/.github/workflows/release-notes.yml b/.github/workflows/release-notes.yml index f1ba083ba6..3d03395c46 100644 --- a/.github/workflows/release-notes.yml +++ b/.github/workflows/release-notes.yml @@ -53,29 +53,26 @@ jobs: echo "${BODY}" >> "$GITHUB_OUTPUT" echo 'EOF' >> "$GITHUB_OUTPUT" env: - GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}' + GH_TOKEN: '${{ secrets.GEMINI_CLI_ROBOT_GITHUB_PAT }}' - name: 'Generate Changelog with Gemini' 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: gemini_api_key: '${{ secrets.GEMINI_API_KEY }}' prompt: | Activate the 'docs-changelog' skill. **Release Information:** - - New Version: $VERSION - - Release Date: $TIME - - Raw Changelog Data: $RAW_CHANGELOG + - New Version: ${{ steps.release_info.outputs.VERSION }} + - Release Date: ${{ steps.release_info.outputs.TIME }} + - Raw Changelog Data: ${{ steps.release_info.outputs.RAW_CHANGELOG }} Execute the release notes generation process using the information provided. - name: 'Create Pull Request' uses: 'peter-evans/create-pull-request@v6' with: - token: '${{ secrets.GITHUB_TOKEN }}' + token: '${{ secrets.GEMINI_CLI_ROBOT_GITHUB_PAT }}' commit-message: 'docs(changelog): update for ${{ steps.release_info.outputs.VERSION }}' title: 'Changelog for ${{ steps.release_info.outputs.VERSION }}' body: | @@ -83,4 +80,5 @@ jobs: Please review and merge. branch: 'changelog-${{ steps.release_info.outputs.VERSION }}' + team-reviewers: 'gemini-cli-docs, gemini-cli-maintainers' delete-branch: true