pub fn seed_template_notes(
review_provider: &dyn ReviewProvider,
kind: ProviderKind,
created: &[String],
desc_branch: Option<&str>,
dry_run: bool,
) -> Result<()>Expand description
Prepare each freshly created review’s body before the managed sections go in. Create-only - existing reviews keep whatever body they have.
With a repo PR/MR template (and stk.usePrTemplate on), the body is seeded
from it: the --desc branch (named by desc_branch) keeps the template
freeform above a seam so the description reads as a distinct block below,
while every other branch wraps the template in the managed description block
as the opening prose. Without a template the only cleanup is on the --desc
branch, whose body create_review seeded with the commit subject when the
commit had no body: that echo is dropped so the description does not sit
beneath a redundant copy of the title. A branch with neither a template nor
a description keeps its subject placeholder untouched. The template’s source
is always the commit body, never the subject echo.