Skip to content

[DEVEX-1523] Fix AI reviewer to explicitly submit gh pr review#122

Merged
revolutionpartsadmin merged 1 commit into
mainfrom
DEVEX-1523-fix-ai-reviewer-prompt
May 19, 2026
Merged

[DEVEX-1523] Fix AI reviewer to explicitly submit gh pr review#122
revolutionpartsadmin merged 1 commit into
mainfrom
DEVEX-1523-fix-ai-reviewer-prompt

Conversation

@ronneseth
Copy link
Copy Markdown
Contributor

Summary

  • Claude was completing its review as text-only output without calling gh pr review, so no approval was submitted
  • Updated prompt with explicit step-by-step instructions to run gh pr diff then gh pr review --approve or --comment
  • Added show_full_output: true for pilot-phase debugging visibility
  • Added PR number and repo context variables to the prompt

JIRA: DEVEX-1523

Made with Cursor

Claude was generating text-only responses instead of calling
gh pr review. Updated prompt with explicit instructions to run
the gh pr review command. Added show_full_output for pilot debugging.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ronneseth ronneseth requested a review from a team as a code owner May 19, 2026 19:17
@ronneseth ronneseth requested a review from aspencer May 19, 2026 19:17
@cursor
Copy link
Copy Markdown

cursor Bot commented May 19, 2026

PR Summary

Low Risk
Low risk workflow-only change; main impact is altering the AI reviewer’s behavior/output and increasing log verbosity via show_full_output: true.

Overview
Tightens the claude-review workflow so the AI reviewer must fetch the PR diff via gh pr diff and then submit a formal GitHub review using gh pr review --approve or --comment (instead of text-only output).

Also adds REPO/PR NUMBER context into the prompt and enables show_full_output: true to increase debugging visibility.

Reviewed by Cursor Bugbot for commit a123a62. Bugbot is set up for automated code reviews on this repo. Configure here.

@revolutionpartsadmin revolutionpartsadmin merged commit 2a9f36e into main May 19, 2026
2 checks passed
@revolutionpartsadmin revolutionpartsadmin deleted the DEVEX-1523-fix-ai-reviewer-prompt branch May 19, 2026 19:17
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a123a62. Configure here.

with:
anthropic_api_key: ${{ secrets.anthropic_api_key }}
github_token: ${{ secrets.ai_reviewer_github_token }}
show_full_output: true
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Debugging flag exposes secrets in shared workflow logs

High Severity

show_full_output: true is enabled in a reusable workflow_call workflow shared across repositories. Per the claude-code-action docs, this flag outputs ALL Claude messages including tool execution results, which may contain secrets, API keys, or other sensitive information — and these logs are publicly visible in GitHub Actions. The PR description calls this a "pilot-phase debugging" addition, suggesting it's temporary, but it's being committed to a shared workflow consumed by many repos.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit a123a62. Configure here.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants