fix(server.py): include all reviews in PR context when triggered by review#2
Closed
WhiteElephantIsNotARobot wants to merge 1 commit intomainfrom
Closed
fix(server.py): include all reviews in PR context when triggered by review#2WhiteElephantIsNotARobot wants to merge 1 commit intomainfrom
WhiteElephantIsNotARobot wants to merge 1 commit intomainfrom
Conversation
…eview Previously, when triggered by a review or review_comment, only the specific review that triggered the bot was included in reviews_history. This caused the PR context to not contain review information as expected. Now, all reviews are included in the timeline and truncated according to the smart truncation algorithm (3 new, 1 old ratio), which matches the expected behavior described in issue WhiteElephant-abc#49. Fixes WhiteElephant-abc#49 Co-Authored-By: Claude (mimo-v2-flash) <noreply@anthropic.com>
Owner
Author
|
Fixes WhiteElephant-abc#49 - 已修复 server.py 中 review 上下文缺失的问题。现在当被 review 或 review_comment 触发时,所有 review 都会包含在上下文中(按时间线截断)。PR: #2 |
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.
Summary
Previously, when triggered by a review or review_comment, only the specific review that triggered the bot was included in
reviews_history. This caused the PR context to not contain review information as expected.Fix
Now, all reviews are included in the timeline and truncated according to the smart truncation algorithm (3 new, 1 old ratio), which matches the expected behavior:
Changes
build_rich_context()function inserver.pyFixes WhiteElephant-abc#49
🤖 Generated with Claude Code