Skip to content

Commit 4ec9a54

Browse files
ci(medium): Update manual trigger guide for Jules session invocations (#9508)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: arii <342438+arii@users.noreply.github.com>
1 parent 8e448b4 commit 4ec9a54

13 files changed

Lines changed: 97 additions & 39 deletions

File tree

.github/actions/setup-env/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ runs:
3232
- name: 'Setup pnpm'
3333
uses: pnpm/action-setup@v4
3434

35-
3635
- name: 'Setup Node.js'
3736
uses: actions/setup-node@v4
3837
with:

.github/automated-labels.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
2-
"review": ["approved", "not approved", "not reviewed", "changes-requested", "ai-reviewed", "ci-failure"],
2+
"review": [
3+
"approved",
4+
"not approved",
5+
"not reviewed",
6+
"changes-requested",
7+
"ai-reviewed",
8+
"ci-failure"
9+
],
310
"scope_prefix": "scope:",
411
"obsolete": [
512
"ready-for-approval",

.github/workflows/comment-ops.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
uses: ./.github/workflows/gemini-coder.yml
8989
with:
9090
task_description: ${{ needs.prepare-coder.outputs.task }}
91-
branch_name: "ai/comment-task-${{ github.event.issue.number }}-${{ github.run_id }}"
91+
branch_name: 'ai/comment-task-${{ github.event.issue.number }}-${{ github.run_id }}'
9292
secrets: inherit
9393

9494
prepare-review-issues-manual:
@@ -189,6 +189,8 @@ jobs:
189189
'| `@gemini-triage` | Run Issue Triage |\n' +
190190
'| `@gemini-coder <task>` | Generate Code |\n' +
191191
'| `@create-review-issues` | Create issues from review (PR only) |\n' +
192+
'| `@jules-new` | Create Jules Session (PR only) |\n' +
193+
'| `@jules-delete` | Delete Jules Session (PR only) |\n' +
192194
'| `@gemini-help` | Show this help message |\n' +
193195
'| `@pr-squash` | Squash PR commits (PR only) |\n' +
194196
'| `@conflict-resolve` | Resolve merge conflicts (PR only) |\n\n' +

.github/workflows/deploy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
- name: 📦 Setup pnpm
2424
uses: pnpm/action-setup@v4
2525

26-
2726
- name: 🟢 Setup Node.js
2827
uses: actions/setup-node@v6
2928
with:

.github/workflows/gemini-coder.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ jobs:
9191
(github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') ||
9292
(vars.GEMINI_ENABLE_CODER != 'false' && github.event.label.name == 'auto-code')
9393
runs-on: self-hosted
94-
9594
steps:
9695
- name: Checkout repository
9796
uses: actions/checkout@v4
@@ -332,7 +331,6 @@ jobs:
332331
if: env.AGENT_PROVIDER == 'gemini'
333332
uses: pnpm/action-setup@v4
334333

335-
336334
- name: 'Gemini: Setup Node.js'
337335
if: env.AGENT_PROVIDER == 'gemini'
338336
uses: actions/setup-node@v6

.github/workflows/jules-session-manager.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
permissions:
99
contents: read
10-
pull-requests: read
10+
pull-requests: write
1111
issues: write
1212

1313
jobs:
@@ -25,7 +25,7 @@ jobs:
2525
fetch-depth: 0
2626

2727
- name: Setup Python
28-
uses: actions/setup-python@v4
28+
uses: actions/setup-python@v5
2929
with:
3030
python-version: '3.10'
3131

@@ -195,7 +195,7 @@ jobs:
195195
196196
- name: 'Add Reaction to Comment'
197197
if: success()
198-
uses: actions/github-script@v6
198+
uses: actions/github-script@v7
199199
with:
200200
github-token: ${{ secrets.GITHUB_TOKEN }}
201201
script: |
@@ -207,15 +207,15 @@ jobs:
207207
})
208208
- name: 'Handle Failure'
209209
if: failure()
210-
uses: actions/github-script@v6
210+
uses: actions/github-script@v7
211211
with:
212212
github-token: ${{ secrets.GITHUB_TOKEN }}
213213
script: |
214214
const errorMessageNew = `${{ steps.jules_op_new.outputs.error_message || '' }}`;
215215
const errorMessageDelete = `${{ steps.jules_op_delete.outputs.error_message || '' }}`;
216-
const errorMessage = errorMessageNew || errorMessageDelete || 'Unknown error occurred';
216+
const errorMessage = errorMessageNew || errorMessageDelete || 'Unknown network or resolution error';
217217
218-
const body = `Jules operation failed with the following error:\n\n\`\`\`\n${errorMessage}\n\`\`\``;
218+
const body = `### ❌ Jules Operation Failed\n\n**Error Details:**\n\`\`\`\n${errorMessage}\n\`\`\`\n\nPlease check the [Action Logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.`;
219219
220220
try {
221221
github.rest.reactions.createForIssueComment({

.github/workflows/manual-release-local.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
- name: 📦 Setup pnpm
3434
uses: pnpm/action-setup@v4
3535

36-
3736
# Caching is disabled for self-hosted runners to improve performance.
3837
- name: 🟢 Setup Node.js
3938
uses: actions/setup-node@v6

.github/workflows/reusable-jules-command.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
fetch-depth: 0
3737

3838
- name: Setup Python
39-
uses: actions/setup-python@v4
39+
uses: actions/setup-python@v5
4040
with:
4141
python-version: '3.10'
4242

@@ -207,7 +207,7 @@ jobs:
207207
208208
- name: 'Add Reaction to Comment'
209209
if: success()
210-
uses: actions/github-script@v6
210+
uses: actions/github-script@v7
211211
with:
212212
github-token: ${{ secrets.GH_TOKEN }}
213213
script: |
@@ -219,15 +219,15 @@ jobs:
219219
})
220220
- name: 'Handle Failure'
221221
if: failure()
222-
uses: actions/github-script@v6
222+
uses: actions/github-script@v7
223223
with:
224224
github-token: ${{ secrets.GH_TOKEN }}
225225
script: |
226226
const errorMessageNew = `${{ steps.jules_op_new.outputs.error_message || '' }}`;
227227
const errorMessageDelete = `${{ steps.jules_op_delete.outputs.error_message || '' }}`;
228-
const errorMessage = errorMessageNew || errorMessageDelete || 'Unknown error occurred';
228+
const errorMessage = errorMessageNew || errorMessageDelete || 'Unknown network or resolution error';
229229
230-
const body = `Jules operation failed with the following error:\n\n\`\`\`\n${errorMessage}\n\`\`\``;
230+
const body = `### ❌ Jules Operation Failed\n\n**Error Details:**\n\`\`\`\n${errorMessage}\n\`\`\`\n\nPlease check the [Action Logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.`;
231231
232232
try {
233233
github.rest.reactions.createForIssueComment({

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -324,16 +324,17 @@ Playwright tests live in `tests/playwright/core-functionality.spec.ts`; baseline
324324

325325
You can interact with the project's automation workflows by using the following commands in pull request or issue comments.
326326

327-
| Command | Description | Example |
328-
| ------------------- | -------------------------------------------------------------------------------------------- | -------------------- |
329-
| `@pr-squash` | Squashes all commits in a pull request into a single commit. | `@pr-squash` |
330-
| `@pr-squash-rebase` | Squashes all commits and rebases the pull request on top of the base branch. | `@pr-squash-rebase` |
331-
| `@create-review-issues` | Creates follow-up issues based on the content of a pull request review. | `@create-review-issues` |
332-
| `@gemini-bot` | Invokes the Gemini AI to perform tasks like code review or code generation. | `@gemini-bot` |
333-
| `@gemini-triage` | Invokes the Gemini AI to perform issue triage (labels, priority, etc.). | `@gemini-triage` |
334-
| `@gemini-coder <task>` | Invokes the Gemini AI to generate code based on the task description. | `@gemini-coder add unit test` |
335-
| `@jules fix` | (Legacy) Invokes the Jules AI to perform a code review. | `@jules fix` |
336-
| `@gemini-update-pr` | Triggers a workflow to update the pull request with the latest changes from the base. | `@gemini-update-pr` |
327+
| Command | Description | Example |
328+
| ----------------------- | ------------------------------------------------------------------------------------- | ----------------------------- |
329+
| `@pr-squash` | Squashes all commits in a pull request into a single commit. | `@pr-squash` |
330+
| `@pr-squash-rebase` | Squashes all commits and rebases the pull request on top of the base branch. | `@pr-squash-rebase` |
331+
| `@create-review-issues` | Creates follow-up issues based on the content of a pull request review. | `@create-review-issues` |
332+
| `@gemini-bot` | Invokes the Gemini AI to perform tasks like code review or code generation. | `@gemini-bot` |
333+
| `@gemini-triage` | Invokes the Gemini AI to perform issue triage (labels, priority, etc.). | `@gemini-triage` |
334+
| `@gemini-coder <task>` | Invokes the Gemini AI to generate code based on the task description. | `@gemini-coder add unit test` |
335+
| `@jules-new` | Initializes a Jules coding session for the pull request. | `@jules-new` |
336+
| `@jules-delete` | Terminates the active Jules coding session. | `@jules-delete` |
337+
| `@gemini-update-pr` | Triggers a workflow to update the pull request with the latest changes from the base. | `@gemini-update-pr` |
337338

338339
For more details on manual triggers and CLI commands, see the [Manual Trigger Reference](docs/workflows/MANUAL_TRIGGERS.md).
339340

deploy/runner/.env.runner.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ RUNNER_MEMORY_LIMIT=
2525

2626
# CPU limit (e.g., 2 for 2 CPUs, 0.5 for half a CPU)
2727
RUNNER_CPU_LIMIT=
28+
29+
# Optional: Set to true to use the host's network stack (resolves DNS/isolation issues)
30+
RUNNER_NETWORK_HOST=false

0 commit comments

Comments
 (0)