Skip to content

Commit d33c368

Browse files
committed
fix(ci): apply review feedback for Gemini workflows
1 parent dd4020b commit d33c368

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/gemini-dispatch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
const request = process.env.REQUEST;
9393
core.setOutput('request', request);
9494
95-
if (eventType === 'pull_request.opened') {
95+
if (eventType === 'pull_request.opened' || eventType === 'pull_request.ready_for_review') {
9696
core.setOutput('command', 'review');
9797
} else if (request.startsWith("@gemini-cli /review")) {
9898
core.setOutput('command', 'review');

.github/workflows/gemini-invoke.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
"search_code"
106106
],
107107
"env": {
108-
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}"
108+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${{ steps.mint_identity_token.outputs.token || secrets.GITHUB_TOKEN || github.token }}"
109109
}
110110
}
111111
},

.github/workflows/gemini-review.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,13 @@ jobs:
9090
"GITHUB_PERSONAL_ACCESS_TOKEN",
9191
"ghcr.io/github/github-mcp-server:v0.27.0"
9292
],
93+
"includeTools": [
94+
"pull_request_read",
95+
"add_comment_to_pending_review",
96+
"pull_request_review_write"
97+
],
9398
"env": {
94-
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}"
99+
"GITHUB_PERSONAL_ACCESS_TOKEN": "${{ steps.mint_identity_token.outputs.token || secrets.GITHUB_TOKEN || github.token }}"
95100
}
96101
}
97102
}

0 commit comments

Comments
 (0)