╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ────────────╮ │src/event/Comment.zig│ ╰─────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │115 var id_bytes: [evt.event_id_size]u8 = undefined; │ │116 io.random(&id_bytes); │ │117 const event_id = std.fmt.bytesToHex(id_bytes, .lower); │ │118 - try evt.consume(host_kind, .repo, repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &.{.{│ │118 + try evt.consume(host, .repo, repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &.{.{ │ │119 .id = event_id, │ │120 .timestamp = @intCast(std.Io.Timestamp.now(io, .real).toSeconds()), │ │121 .author = author, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────╮ │131 // replace a comment's body while preserving its thread and parent. `repo` must│ │132 // be writable. │ │133 pub fn update( │ │134 - host_kind: evt.HostKind, │ │134 + host: evt.Host, │ │135 comptime repo_kind: rp.RepoKind, │ │136 comptime repo_opts: rp.RepoOpts(repo_kind), │ │137 io: std.Io, │ ╰────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │164 │ │165 var updated = comment.event; │ │166 updated.body = body; │ │167 - try evt.consume(host_kind, .repo, repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &.{.{│ │167 + try evt.consume(host, .repo, repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &.{.{ │ │168 .id = std.fmt.bytesToHex(comment_id.*, .lower), │ │169 .timestamp = @intCast(std.Io.Timestamp.now(io, .real).toSeconds()), │ │170 .author = author, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ───────────────╮ │src/event/Discussion.zig│ ╰────────────────────────╯ ╭────────────────────────────────────────────────────╮ │148 } │ │149 │ │150 pub fn update( │ │151 - host_kind: evt.HostKind, │ │151 + host: evt.Host, │ │152 comptime repo_kind: rp.RepoKind, │ │153 comptime repo_opts: rp.RepoOpts(repo_kind),│ │154 io: std.Io, │ ╰────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │167 const discussion = (try readById(repo_kind, repo_opts, io, allocator, &arena, repo, id)) orelse return error.NotFound;│ │168 if (discussion.removed) return error.NotFound; │ │169 │ │170 - try evt.consume(host_kind, .repo, repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &.{.{ │ │170 + try evt.consume(host, .repo, repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &.{.{ │ │171 .id = std.fmt.bytesToHex(id.*, .lower), │ │172 .timestamp = @intCast(std.Io.Timestamp.now(io, .real).toSeconds()), │ │173 .author = author, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──────────╮ │src/event/Issue.zig│ ╰───────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │192 // error.InvalidFields when a resolve composes invalid fields. `repo` must be│ │193 // writable. │ │194 pub fn update( │ │195 - host_kind: evt.HostKind, │ │195 + host: evt.Host, │ │196 comptime repo_kind: rp.RepoKind, │ │197 comptime repo_opts: rp.RepoOpts(repo_kind), │ │198 io: std.Io, │ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │225 }, │ │226 } │ │227 │ │228 - try evt.consume(host_kind, .repo, repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &[_]evt.EventWithId{.{│ │228 + try evt.consume(host, .repo, repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &[_]evt.EventWithId{.{ │ │229 .id = std.fmt.bytesToHex(id_bytes.*, .lower), │ │230 .timestamp = @intCast(std.Io.Timestamp.now(io, .real).toSeconds()), │ │231 .author = author, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──────────╮ │src/event/Patch.zig│ ╰───────────────────╯ ╭────────────────────────────────────────────────────╮ │302 } │ │303 │ │304 pub fn update( │ │305 - host_kind: evt.HostKind, │ │305 + host: evt.Host, │ │306 comptime repo_kind: rp.RepoKind, │ │307 comptime repo_opts: rp.RepoOpts(repo_kind),│ │308 io: std.Io, │ ╰────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │344 } │ │345 if (!fieldsValid(updated.title, updated.labels)) return error.InvalidFields; │ │346 │ │347 - if (updated.source_branch != null and updated.revision == null) return @import("../patch.zig").writeBranchPatch(host_kind, repo_kind, repo_opts, io, allocator, repo, std.fmt.bytesToHex(id.*, .lower), updated, record.event, author);│ │348 - try evt.consume(host_kind, .repo, repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &.{.{ │ │347 + if (updated.source_branch != null and updated.revision == null) return @import("../patch.zig").writeBranchPatch(host, repo_kind, repo_opts, io, allocator, repo, std.fmt.bytesToHex(id.*, .lower), updated, record.event, author); │ │348 + try evt.consume(host, .repo, repo_kind, repo_opts, io, allocator, repo, evt.events_ref, &.{.{ │ │349 .id = std.fmt.bytesToHex(id.*, .lower), │ │350 .timestamp = @intCast(std.Io.Timestamp.now(io, .real).toSeconds()), │ │351 .author = author, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─────────╮ │src/event/User.zig│ ╰──────────────────╯ ╭────────────────────────────────────────────────╮ │252 io: std.Io, │ │253 allocator: std.mem.Allocator, │ │254 repo: *rp.Repo(.xit, repo_opts), │ │255 + users_dir: []const u8, │ │256 user_id: []const u8, │ │257 ) !void { │ │258 const DB = rp.Repo(.xit, repo_opts).DB;│ ╰────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯