╭ changed ─────────╮ │src/event/Fork.zig│ ╰──────────────────╯ ╭───────────────────────────────────────────────────────────╮ │18 │ │19 pub const Stage = enum { │ │20 draft, │ │21 - posted, │ │21 + publish, │ │22 }; │ │23 │ │24 pub const merge_policy: evt.MergePolicy = .target_wins;│ ╰───────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │73 if (existing_maybe) |existing| { │ │74 if (!std.mem.eql(u8, existing.event.user_id, record.event.user_id) or │ │75 !std.mem.eql(u8, existing.event.repo_id, record.event.repo_id)) return error.ForkChanged; │ │76 - if (existing.event.stage == .posted and record.event.stage != .posted) return error.ForkAlreadyPosted; │ │76 + if (existing.event.stage == .publish and record.event.stage != .publish) return error.ForkAlreadyPublished;│ │77 record.created_order = existing.created_order; │ │78 if (!existing.removed) { │ │79 const order_key = evt.orderKeyDesc(existing.created_order, event_id); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──────────╮ │src/event/Issue.zig│ ╰───────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────╮ │233 }}); │ │234 } │ │235 │ │236 -// the live fields with `resolve` applied: posted title/tags stand in for the │ │236 +// the live fields with `resolve` applied: submitted title/tags stand in for the│ │237 // live ones, and a conflicted description is reassembled from the hunk │ │238 // resolutions against the conflict entry. the chunking is deterministic: the │ │239 // entry holds immutable slots and any event since would have removed it, so │ ╰─────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ───╮ │src/fork.zig│ ╰────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │227 if (!std.mem.eql(u8, patch.author_email orelse "", author.email)) return error.PatchDataUnavailable;│ │228 if (patch.event.status == .merged) return error.PatchAlreadyMerged; │ │229 } │ │230 - const posted = target_patch != null; │ │230 + const published = target_patch != null; │ │231 const title = if (target_patch) |patch| patch.event.title else fork_patch.event.title; │ │232 │ │233 // resolve the target and the newest fork revision │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────╮ │249 writer: *std.Io.Writer, │ │250 patch_id: [evt.event_id_size * 2]u8, │ │251 patch: evt.Patch.Record, │ │252 - posted: bool, │ │252 + published: bool, │ │253 target_oid: [hash.hexLen(repo_opts.hash)]u8,│ │254 target_ref: []const u8, │ │255 title: []const u8, │ ╰─────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │288 var head_tree_oid: [hash.hexLen(repo_opts.hash)]u8 = undefined; │ │289 var tree_entries: [2]evt.EventTreeEntry = undefined; │ │290 if (existing_revision) |latest| { │ │291 - if (ctx.posted) ctx.revision_id_maybe.* = latest.id; │ │291 + if (ctx.published) ctx.revision_id_maybe.* = latest.id; │ │292 } else { │ │293 var base_object = try obj.Object(.xit, repo_opts).initCommit(state.readOnly(), ctx.io, ctx.allocator, &base_oid);│ │294 defer base_object.deinit(); │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────╮ │334 event_count += 1; │ │335 ctx.revision_id_maybe.* = revision_id;│ │336 │ │337 - if (!ctx.posted) { │ │337 + if (!ctx.published) { │ │338 var patch = ctx.patch.event; │ │339 patch.revision = .{ │ │340 .id = revision_hex, │ ╰───────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────╮ │352 } │ │353 } │ │354 │ │355 - // posted patches keep only revisions in the fork │ │356 - if (ctx.posted and !ctx.patch.removed) { │ │355 + // published patches keep only revisions in the fork│ │356 + if (ctx.published and !ctx.patch.removed) { │ │357 events[event_count] = .{ │ │358 .id = ctx.patch_id, │ │359 .timestamp = ctx.timestamp, │ ╰─────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────╮ │385 .writer = writer, │ │386 .patch_id = id.*, │ │387 .patch = fork_patch, │ │388 - .posted = posted, │ │388 + .published = published, │ │389 .target_oid = target_oid,│ │390 .target_ref = target_ref,│ │391 .title = title, │ ╰──────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │400 try writer.flush(); │ │401 } │ │402 │ │403 - // best-effort update the posted patch so it has the new revision │ │403 + // best-effort update the published patch so it has the new revision │ │404 { │ │405 const revision_id = revision_id_maybe orelse return; │ │406 - if (!posted) return; │ │406 + if (!published) return; │ │407 var update_arena = std.heap.ArenaAllocator.init(allocator); │ │408 defer update_arena.deinit(); │ │409 const target_update_moment = evt.currentMoment(repo_opts, target_repo) catch return;│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯