You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pr-body-check crashes on a PR body with CodeRabbit's summary #1067
.agents/scripts/merge-pr.sh 1065 stopped with TypeError: Cannot read properties of null (reading 'text') at .agents/scripts/pr-body-check.mjs:281 (checklistItems), then not merged: PR #1062 body fails pr-body-check.mjs.
Why
checklistItems pushes null for an unindented line, and the next indented line then reads checklist.at(-1).text on that null. CodeRabbit's summary, appended to the PR body, has exactly that shape: * **New Features**, then * Setup now ....
Repro
Any PR body with an unindented non-checklist line followed by an indented line, for example a CodeRabbit "Summary by CodeRabbit" block. Run node .agents/scripts/pr-body-check.mjs <pr>.
Workaround used
I removed the CodeRabbit block from #1062's body by hand and re-ran the gate.
Activity