Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@leehagoodjames
Copy link
Contributor

@leehagoodjames leehagoodjames commented Aug 7, 2025

This change modifies the prompt to constrain the agent on how the review must be submitted to GitHub. This aims to improve what is seen in #134 where "more than 50% of the time PR review fails due to tool problems posting the review."

Since this is occurring intermittently - this is a probabilistic issue, not a permissions issue, which is why the prompt is being changed.

Primary changes:

  1. Sometimes the agent made tool calls for a fake repo owner to make tool calls. The change instructs the agent to list the repository owner.
    1. Surprisingly, even when the agent hallucinated a fake repo owner and made tool calls with this, our logs show that these calls were successful (so the agent thought things were working), which is why workflow errors did not surface. I have filed a bug with GitHub MCP to ensure they are returning failures, and will ensure that gemini-cli logs/telemetry is properly capturing and recording tool call failures.
  2. Sometimes the agent didn't attempt to make tool calls. The prompt was made to be more explicit that this is a necessity.

Fixes #134

@sethvargo
Copy link
Contributor

Can you rebase?

@jerop
Copy link
Contributor

jerop commented Aug 8, 2025

@gemini-cli /review

Copy link

@gemini-cli gemini-cli bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good change that improves the clarity of the instructions for the agent. I have a couple of minor nits, but overall this is a good improvement.

@google-github-actions google-github-actions deleted a comment from jerop Aug 8, 2025
@leehagoodjames leehagoodjames merged commit 3371c77 into google-github-actions:main Aug 8, 2025
13 checks passed
google-github-actions-bot added a commit that referenced this pull request Aug 8, 2025
## What's Changed
* Broken links by @kulaone in
#129
* chore: mention user to confirm who run by @Marukome0743 in
#131
* bug(#109): Support triggering PR review with issue comment by
@leehagoodjames in
#138
* feat(setup): enable setup script to automatically set repository
variables by @leehagoodjames in
#140
* Add `echo` to core tools for automated issue triage by @jerop in
#143
* chore: simply GitHub Actions permissions by @sethvargo in
#144
* Simplify the workflow triggers by @jerop in
#146
* bug(/review): Fix agent not posting feedback in GitHub by
@leehagoodjames in
#141

## New Contributors
* @kulaone made their first contribution in
#129

**Full Changelog**:
v0.1.6...v0.1.7
2. Run: echo "${CHANGED_FILES}" to get the list of changed files
3. Run: echo "${PR_NUMBER}" to get the PR number
4. Run: echo "${ADDITIONAL_INSTRUCTIONS}" to see any specific review
1. Run: echo $"{REPOSITORY}" to get the github repository in <OWNER>/<REPO> format
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bug.

Suggested change
1. Run: echo $"{REPOSITORY}" to get the github repository in <OWNER>/<REPO> format
1. Run: echo "${REPOSITORY}" to get the github repository in <OWNER>/<REPO> format

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @dan-ri - fixing in #148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

pr-review frequently fails with [Error: Could not parse tool response]

4 participants