╭ changed ──────────╮ │src/event/Patch.zig│ ╰───────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────╮ │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, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯