body.md — maintain PR title or body
Entry: an open PR plus a requested title/body change. Saves .thinkrail/context/pr-body.md when
editing the body (kept as an artifact; the next edit overwrites it). Default completion is snapshot mode; preserve wait mode only when selected by the
spine's explicit remote-completion rule.
- Fetch the current title and body (
gh pr view <n> --json title,body) and read the repository's.github/PULL_REQUEST_TEMPLATE.mdwhen present. Preserve existing sections, issue links, checklist items, and unrelated content; apply only the requested mutation. - For a body edit, write the complete candidate to
.thinkrail/context/pr-body.md. Immediately beforegh pr edit, fetch the current body again; if it changed, merge the requested mutation into that fresh body instead of overwriting concurrent edits. Usegh pr edit <n> --body-file ..., never an inline body. For a title edit, immediately re-fetch the current title too; if it changed, reapply only the requested mutation to that fresh title beforegh pr edit <n> --title .... - Fetch the resulting title/body once to verify the requested mutation landed. Leave the body file in place.
Next
Read and follow checks.md in the selected completion mode.