fix: preserve PR title across reviewer iterations#90
Merged
mdelapenya merged 1 commit intomainfrom Mar 23, 2026
Merged
Conversation
The reviewer was generating PR titles based only on the latest iteration's work, causing misleading titles like 'chore: use subtests' when the main change was 'feat: new feature'. Now the reviewer is instructed to review the full branch diff and preserve existing PR titles unless the scope fundamentally changes. Ralph-Run-Id: 23434416100 Ralph-Run-Url: https://github.com/mdelapenya/claude-ralph-github-action/actions/runs/23434416100 Ralph-Worker-Model: opus
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the reviewer agent system prompt to keep PR metadata (title/body) aligned with the full branch scope across iterative Ralph cycles, addressing Issue #89 where titles drift to reflect only the latest iteration.
Changes:
- Instructs the reviewer to generate PR titles based on the entire branch diff/commit history, not just the latest iteration.
- Adds guidance to preserve an existing PR title unless the overall scope/type has fundamentally changed.
- Updates PR body work-summary guidance to be comprehensive across all branch changes, using commit history as a source of truth.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #89
Status
SHIP — Iteration 1
Summary
Changes
prompts/reviewer-system.md: Added CRITICAL instruction for full-branch-aware PR title generation, existing title preservation logic, and comprehensive work summary buildingGenerated by Claude Ralph GitHub Action