-
If I ask it to approve, a response from gemini looks like this:
"candidates": [ { "content": { "parts": [ { "text": "LGTM: No critical issues found." }, { "functionCall": { "name": "approvePullRequest", "args": {} } } ], "role": "model" }, "finishReason": "STOP", "finishMessage": "Model generated function call(s)." } ], "usageMetadata": { "promptTokenCount": 21081, "candidatesTokenCount": 18, "totalTokenCount": 21099, "cachedContentTokenCount": 17293, "promptTokensDetails": [ { "modality": "TEXT", "tokenCount": 21081 } ], "cacheTokensDetails": [ { "modality": "TEXT", "tokenCount": 17293 } ] }, "turnToken": "v1_********************************" }It does this many times but I only asked it once.
-
Which model are you using? As to code comments, it is not supported yet.
-
We're currently using gemini-2.5-pro. Same effect was found on 2.5 flash.
-
Just tested with 2.5 pro and things are working fine. Can you please create a demo project on this site with a demo PR?
-
No any demo for now. It is possible that the approval action being called multiple times. Will add some guard condition on this.
-
You don't need a demo project anymore?
Yes it does look like multiple calls very quickly.
I'll also include the prompt that we use (I forgot to add that sorry...)
-
Yes, no need for it for now.
-
State changed as build OD-7256 (15.0.0) is successful
-
OneDev
changed state to 'Closed' 2 months ago
Previous Value Current Value Open
Closed
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| Affected Versions |
14.0.7
|
| Labels |
No labels
|
Issue Votes (0)
We have added an AI user to do PR reviews. I have one issue and one question:
Sometimes I see a long list of messages about approving the PR. Sometimes this ends with an error but not always. (See image)
Can an AI user write code-comments or can it only write normal comments? I tried to put it in the prompt but so far it has not made code-comments on a PR.
Prompt that we added to AI user: