publish_edit
Save a checked render as the next version with its recipe, update linked posts, reply to review comments it fixes, and record a changelog note.
Instructions
Save a checked render as the next version, edits/-vN.mp4, with its recipe. In one call: reads the checks the render ran (it refuses on a failed check; accept=[{rule, why}] for a fail you meant), puts the version on the posts that follow this edit (a version the user picked stays), answers the review comments it fixes (replies: like reply_comment; fixed_in and resolve are set for you) and saves note as the changelog line. Call it once per version. To show another file on a post, call set_post media=... after.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | One short line the user reads under the edit, at most 60 characters. Say what the viewer will notice, in plain words. No field names or numbers in dB. Example: 'Music softer. Cut the restart at 0:41.' | |
| accept | No | [{rule, why}]: failed checks you keep on purpose. rule is a rule id or a check id. Saved in the recipe. | |
| render | Yes | The job id from render_edit, or its render path. | |
| go_back | No | true to save even when a newer version was saved while this render ran. | |
| replies | No | Comments this version fixes: [{id, text, lesson, rule?}], as in reply_comment. | |
| session | Yes | Session as 'Project/folder', an absolute path, or its id (from get_session). An old path still works after a rename or move. |