Skip to content

Conversation

@lightninglu10
Copy link
Contributor

@lightninglu10 lightninglu10 commented Jan 26, 2026

Summary

Add a force_full_review input and improve re-review prompting so the agent can optionally perform a full PR review even during re-review runs.

Changes

  • Add force_full_review GitHub Action input
  • Plumb FORCE_FULL_REVIEW through runtime env -> TriggerContext
  • Update agent prompt to better scope first-review vs re-review
  • Add explicit full-review mode section to the system prompt

git diff may fail in GitHub Actions shallow clones - provide gh api
and gh pr diff as fallback options
agent was adding all PR files to todos before checking if this was a re-review.
now explicitly instructs to determine scope first, then create todos only for
files in that scope.
- previous comments are already provided in context, no need to fetch
- todo list scope depends on first-time vs re-review status
- add guidance to use rg for searching context based on comments/diff
- remove contradictory "review EVERY file" language
…commits"

the diff should be from the previous review commit SHA to current HEAD,
capturing ALL changes since the bot last reviewed regardless of commit count
if diff is empty, complete immediately with verdict NONE
- new action input: force_full_review (default: false)
- when enabled, ignores re-review optimizations and reviews all files
- also handle edge case of empty diff since last review
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Adds a force_full_review input and threads it through TriggerContext/env so the agent can be instructed to ignore re-review scoping and do a full pass. Prompt updates clarify first-review vs re-review scope and reduce redundant comment fetching. No functional issues found; changes are consistent and should be backward compatible.

@lightninglu10 lightninglu10 merged commit bd380ef into main Jan 26, 2026
4 checks passed
@lightninglu10 lightninglu10 deleted the improve-rereview-prompting branch January 26, 2026 09:18
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