pub fn fold(layout: &Layout, inbox: &Path, project: &str) -> Result<String>Expand description
Fold an inbox-convention org file into tracked issues.
Each top-level * TODO <title> heading that does not already carry a
:VISSUE_ID: line becomes an issue in project (body = the heading’s
text up to the next heading). The heading is then flipped to DONE and
stamped with the assigned id in place, so a second run is a no-op:
stamped headings are skipped, and folding is idempotent.
§Errors
Returns an error if the inbox cannot be read or written, project cannot
be resolved, or creating a folded issue fails. Headings already stamped
before a failure stay stamped.