@@ -45,14 +45,15 @@ jobs:
4545
4646 - name : ' Run Gemini pull request review'
4747 # reviews code with detailed set of instructions for the Gemini
48- uses : ' google-github-actions/run-gemini-cli@v0 '
48+ uses : ' google-github-actions/run-gemini-cli@main '
4949 id : ' gemini_pr_review'
5050 env :
5151 GITHUB_TOKEN : ' ${{ steps.mint_identity_token.outputs.token || secrets.GITHUB_TOKEN || github.token }}'
5252 ISSUE_TITLE : ' ${{ github.event.pull_request.title || github.event.issue.title }}'
5353 ISSUE_BODY : ' ${{ github.event.pull_request.body || github.event.issue.body }}'
5454 PULL_REQUEST_NUMBER : ' ${{ github.event.pull_request.number || github.event.issue.number }}'
5555 REPOSITORY : ' ${{ github.repository }}'
56+ ADDITIONAL_CONTEXT : ' ${{ inputs.additional_context }}'
5657 with :
5758 gcp_location : ' ${{ vars.GOOGLE_CLOUD_LOCATION }}'
5859 gcp_project_id : ' ${{ vars.GOOGLE_CLOUD_PROJECT }}'
6566 google_api_key : ' ${{ secrets.GOOGLE_API_KEY }}'
6667 use_gemini_code_assist : ' ${{ vars.GOOGLE_GENAI_USE_GCA }}'
6768 use_vertex_ai : ' ${{ vars.GOOGLE_GENAI_USE_VERTEXAI }}'
69+ workflow_name : ' gemini-review'
6870 settings : |-
6971 {
7072 "model": {
@@ -83,13 +85,12 @@ jobs:
8385 "--rm",
8486 "-e",
8587 "GITHUB_PERSONAL_ACCESS_TOKEN",
86- "ghcr.io/github/github-mcp-server:v0.18 .0"
88+ "ghcr.io/github/github-mcp-server:v0.27 .0"
8789 ],
8890 "includeTools": [
8991 "add_comment_to_pending_review",
90- "create_pending_pull_request_review",
9192 "pull_request_read",
92- "submit_pending_pull_request_review "
93+ "pull_request_review_write "
9394 ],
9495 "env": {
9596 "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}"
@@ -98,11 +99,11 @@ jobs:
9899 },
99100 "tools": {
100101 "core": [
101- "run_shell_command(cat)",
102- "run_shell_command(echo)",
103- "run_shell_command(grep)",
104- "run_shell_command(head)",
105- "run_shell_command(tail)"
102+ "run_shell_command(cat)",
103+ "run_shell_command(echo)",
104+ "run_shell_command(grep)",
105+ "run_shell_command(head)",
106+ "run_shell_command(tail)"
106107 ]
107108 }
108109 }
0 commit comments