╭ changed ─────────╮ │src/event/Fork.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────╮ │ 6 repo_id: [evt.event_id_size * 2]u8, │ │ 7 // the target repo's owner, whose user repo holds the target │ │ 8 repo_user_id: [evt.event_id_size * 2]u8, │ │ 9 +// the target repo's name when forked, which outlives a deleted target│ │10 +repo_name: []const u8, │ │11 stage: Stage = .draft, │ │12 │ │13 // what the db stores: the event's data plus the commit-derived fields│ ╰──────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────╮ │34 fn validate(record: Record) !void { │ │35 _ = try evt.parseEventId(&record.event.repo_id); │ │36 _ = try evt.parseEventId(&record.event.repo_user_id);│ │37 + try evt.Repo.validateName(record.event.repo_name); │ │38 } │ │39 │ │40 pub fn consume( │ ╰─────────────────────────────────────────────────────────────╯