Commit c8a6106
fix(server.py): include all reviews in PR context when triggered by review
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>1 parent 4f54a9e commit c8a6106
1 file changed
+18
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
644 | | - | |
| 643 | + | |
| 644 | + | |
645 | 645 | | |
646 | | - | |
647 | | - | |
648 | | - | |
| 646 | + | |
649 | 647 | | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
671 | 663 | | |
672 | 664 | | |
673 | 665 | | |
| |||
0 commit comments