Anchor merge direction in describe system prompt#17
Open
plebioda wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the describe system prompt to explicitly anchor merge direction so per-file descriptions consistently describe changes from the fork’s base commit to the incoming upstream commit (and avoid inverted descriptions).
Changes:
- Defines Base (before) as
merge_info.target_branch_shaonmerge_info.target_branch. - Defines Incoming (after) as
merge_info.merge_commit(alsomerge_context.merge_commit) and mandates describing auto-merged files as base → incoming. - Instructs the agent to leave a file’s description empty when direction is uncertain rather than guessing.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Collaborator
Author
|
This change improves the invalid merge description for the following PRs: |
The describe prompt let the model infer direction from filenames and commit summaries, which produced inverted per-file descriptions. Name target_branch_sha as base and merge_commit as incoming explicitly, require descriptions to follow base->incoming, and instruct the agent to leave a file's description empty when uncertain rather than guess.
4232dfa to
3cece89
Compare
igorsol
approved these changes
May 26, 2026
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.
The describe prompt let the model infer direction from filenames and commit summaries, which produced inverted per-file descriptions.
Name target_branch_sha as base and merge_commit as incoming explicitly, require descriptions to follow base->incoming, and instruct the agent to leave a file's description empty when uncertain rather than guess.