Skip to content

Commit cf95b63

Browse files
authored
use the cla user (#8806)
1 parent 2993800 commit cf95b63

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

.github/workflows/release-patch-1-create-pr.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ jobs:
5151
- name: 'Install Dependencies'
5252
run: 'npm ci'
5353

54+
- name: 'Generate GitHub App Token'
55+
id: 'generate_token'
56+
uses: 'actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b'
57+
with:
58+
app-id: '${{ secrets.APP_ID }}'
59+
private-key: '${{ secrets.PRIVATE_KEY }}'
60+
permission-pull-requests: 'write'
61+
permission-contents: 'write'
62+
5463
- name: 'Configure Git User'
5564
run: |-
5665
git config user.name "gemini-cli-robot"
@@ -59,7 +68,7 @@ jobs:
5968
- name: 'Create Patch'
6069
id: 'create_patch'
6170
env:
62-
GH_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
71+
GH_TOKEN: '${{ steps.generate_token.outputs.token }}'
6372
continue-on-error: true
6473
run: |
6574
# Capture output directly to environment variable

docs/releases.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,39 @@ Review the automatically created pull request(s) to ensure the cherry-pick was s
148148

149149
**Security Note:** The `release/*` branches are protected by branch protection rules. A pull request to one of these branches requires at least one review from a code owner before it can be merged. This ensures that no unauthorized code is released.
150150

151+
#### 2.5. Adding Multiple Commits to a Hotfix (Advanced)
152+
153+
If you need to include multiple fixes in a single patch release, you can add additional commits to the hotfix branch after the initial patch PR has been created:
154+
155+
1. **Start with the primary fix**: Use `/patch` (or `/patch both`) on the most important PR to create the initial hotfix branch and PR.
156+
157+
2. **Checkout the hotfix branch locally**:
158+
159+
```bash
160+
git fetch origin
161+
git checkout hotfix/v0.5.1/stable/cherry-pick-abc1234 # Use the actual branch name from the PR
162+
```
163+
164+
3. **Cherry-pick additional commits**:
165+
166+
```bash
167+
git cherry-pick <commit-sha-1>
168+
git cherry-pick <commit-sha-2>
169+
# Add as many commits as needed
170+
```
171+
172+
4. **Push the updated branch**:
173+
174+
```bash
175+
git push origin hotfix/v0.5.1/stable/cherry-pick-abc1234
176+
```
177+
178+
5. **Test and review**: The existing patch PR will automatically update with your additional commits. Test thoroughly since you're now releasing multiple changes together.
179+
180+
6. **Update the PR description**: Consider updating the PR title and description to reflect that it includes multiple fixes.
181+
182+
This approach allows you to group related fixes into a single patch release while maintaining full control over what gets included and how conflicts are resolved.
183+
151184
#### 3. Automatic Release
152185

153186
Upon merging the pull request, the `Release: Patch (2) Trigger` workflow is automatically triggered. It will then start the `Release: Patch (3) Release` workflow, which will:

0 commit comments

Comments
 (0)