Commit 8e57335
fix: handle multi-line XML comments in
* fix: handle multi-line XML comments in PackageDiffAsync
Add an inComment flag to correctly track multi-line XML comment blocks
in Directory.Packages.props diffs. Previously, continuation lines of
a block comment did not start with '<!--', causing uncertain = true
and triggering a full test matrix run unnecessarily.
Changes:
- Track inComment state across lines
- Skip continuation lines until '-->' is found
- Handle comments that follow content on the same line
- Guard the final uncertain = true with a non-empty line check
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>PackageDiffAsync (#1422)1 parent bf90b41 commit 8e57335
1 file changed
Lines changed: 47 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
| 682 | + | |
682 | 683 | | |
683 | 684 | | |
684 | 685 | | |
| |||
698 | 699 | | |
699 | 700 | | |
700 | 701 | | |
701 | | - | |
| 702 | + | |
702 | 703 | | |
703 | 704 | | |
704 | 705 | | |
705 | 706 | | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
706 | 748 | | |
707 | 749 | | |
708 | 750 | | |
709 | 751 | | |
710 | 752 | | |
711 | 753 | | |
712 | 754 | | |
713 | | - | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
714 | 759 | | |
715 | 760 | | |
716 | 761 | | |
| |||
0 commit comments