Commit 3100b39
Fix stuck PRs from incomplete conflict-resolution comment
When updating a descendant branch after its parent PR was squash-merged
hits a merge conflict, the bot posts a comment telling the author how to
finish by hand. That comment listed only the ref that conflicted, so a
human following it ran a single `git merge` and ended up with a branch
still missing the parent-branch merge and the `-s ours` squash record —
never mergeable into its new base, so it stayed stuck.
The sequence is the same whichever merge conflicts, so the comment now
prints it in full: merge the parent branch, merge the pre-squash target,
then record the squash with `-s ours`. This fixes the comment only; the
author runs the steps by hand.
The e2e conflict scenario used to resolve by merging the base directly,
so it never exercised the comment. It now follows the comment's commands
verbatim, proving a human who follows them ends up mergeable.
Diagnosed on sensei #7987.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 908602b commit 3100b39
2 files changed
Lines changed: 34 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
878 | 878 | | |
879 | 879 | | |
880 | 880 | | |
881 | | - | |
882 | | - | |
| 881 | + | |
| 882 | + | |
883 | 883 | | |
884 | | - | |
885 | 884 | | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
892 | 908 | | |
893 | | - | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | 909 | | |
| 910 | + | |
| 911 | + | |
907 | 912 | | |
908 | 913 | | |
909 | 914 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 48 | | |
60 | 49 | | |
61 | 50 | | |
| |||
91 | 80 | | |
92 | 81 | | |
93 | 82 | | |
94 | | - | |
95 | | - | |
96 | | - | |
| 83 | + | |
97 | 84 | | |
98 | 85 | | |
99 | 86 | | |
100 | 87 | | |
101 | 88 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
109 | 93 | | |
110 | 94 | | |
111 | 95 | | |
| 96 | + | |
| 97 | + | |
112 | 98 | | |
113 | 99 | | |
114 | 100 | | |
| |||
0 commit comments