Skip to content

Format a MIF issue body with format_mif_issue_body

Goal: prepend the MIF L1 frontmatter comment block to a Markdown body yourself, without creating an issue — useful when composing a body ahead of time or feeding it to a tool other than create_issue (which does this prepending automatically).

  • None — this is a pure string-transformation function; it makes no GitHub API call.
  1. Call format_mif_issue_body:

    {
    "meta": { "id": "flaky-upload-retry", "type": "Bug", "namespace": "your-repo" },
    "body": "Uploads intermittently fail on slow connections."
    }
  2. Read the result — a single string:

    <!-- mif-id: urn:mif:concept:your-repo:flaky-upload-retry -->
    <!-- mif-type: Bug -->
    <!-- mif-ns: your-repo -->
    Uploads intermittently fail on slow connections.
  • Confirm the three comment lines appear before your original body, unmodified, with id expanded into the full urn:mif:concept:{namespace}:{id} form.
  • Feed the result back through parse_mif_issue_body and confirm you get the original meta and body back.

See also: tool reference.