File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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');
Original file line number Diff line number Diff 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 },
Original file line number Diff line number Diff line change 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 }
You can’t perform that action at this time.
0 commit comments