Patch a changelog fragment
project_changelog_patchUpdates an unreleased changelog fragment's frontmatter and body before a release consumes it. Optimistic concurrency guards against overwriting concurrent edits when a revision mismatch is detected.
Instructions
Patch an unreleased changelog fragment using optimistic concurrency. Only works before a release consumes the fragment; afterwards the text belongs to that release.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unreleased fragment to patch, e.g. CHG-0101. | |
| changes | Yes | Frontmatter fields to overwrite — title, type, area, visibility, tags and the relation lists — plus body to replace the Markdown. Only the keys present are touched. | |
| expectedRevision | No | Revision string from an earlier read of this record. The write is refused if it no longer matches, so a concurrent edit is reported rather than overwritten. Omit to skip the check. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes | A canonical record with its body, revision and reference graph. |