Skip to main content

encode_ref_updated

Function encode_ref_updated 

Source
pub fn encode_ref_updated(landed_oid: &str) -> String
Expand description

What: Encode ref-updated.json with its trailing newline. Why: See encode_preparing.

In TS you’d write (pseudocode):

`${JSON.stringify({ schemaVersion: 2, state: 'ref-updated', landedOid })}\n`