╭ changed ────╮ │src/event.zig│ ╰─────────────╯ ╭───────────────────────────────────────────────────────────╮ │11 pub const Repo = @import("event/Repo.zig"); │ │12 pub const Fork = @import("event/Fork.zig"); │ │13 pub const Grant = @import("event/Grant.zig"); │ │14 -pub const Issue = @import("event/Issue.zig"); │ │14 pub const Discussion = @import("event/Discussion.zig");│ │15 +pub const Issue = @import("event/Issue.zig"); │ │16 pub const Comment = @import("event/Comment.zig"); │ │17 pub const Attachment = @import("event/Attachment.zig");│ │18 pub const Patch = @import("event/Patch.zig"); │ ╰───────────────────────────────────────────────────────────╯ ╭──────────────────╮ │273 repo, │ │274 fork, │ │275 grant, │ │276 - issue, │ │276 discuss, │ │277 + issue, │ │278 comment, │ │279 attach, │ │280 patchrev,│ ╰──────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────╮ │295 else => false, │ │296 }, │ │297 .repo => switch (kind) { │ │298 - .issue, .discuss, .comment, .attach, .patchrev, .patch => true,│ │298 + .discuss, .issue, .comment, .attach, .patchrev, .patch => true,│ │299 else => false, │ │300 }, │ │301 .fork => switch (kind) { │ ╰────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────╮ │322 repo: ?Repo, │ │323 fork: ?Fork, │ │324 grant: ?Grant, │ │325 - issue: ?Issue, │ │325 discuss: ?Discussion,│ │326 + issue: ?Issue, │ │327 comment: ?Comment, │ │328 attach: ?Attachment, │ │329 patchrev: ?PatchRev, │ ╰──────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │429 .grant => .{ │ │430 .grant = if (json_event.data) |value| │ │431 try std.json.parseFromValueLeaky(Grant, arena.allocator(), value, .{ .ignore_unknown_fields = true })│ │432 - else │ │433 - null, │ │434 - }, │ │435 - .issue => .{ │ │436 - .issue = if (json_event.data) |value| │ │437 - try std.json.parseFromValueLeaky(Issue, arena.allocator(), value, .{ .ignore_unknown_fields = true })│ │432 else │ │433 null, │ │434 }, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │435 .discuss => .{ │ │436 .discuss = if (json_event.data) |value| │ │437 try std.json.parseFromValueLeaky(Discussion, arena.allocator(), value, .{ .ignore_unknown_fields = true })│ │438 + else │ │439 + null, │ │440 + }, │ │441 + .issue => .{ │ │442 + .issue = if (json_event.data) |value| │ │443 + try std.json.parseFromValueLeaky(Issue, arena.allocator(), value, .{ .ignore_unknown_fields = true }) │ │444 else │ │445 null, │ │446 }, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────╮ │513 .repo => .{ .repo = null }, │ │514 .fork => .{ .fork = null }, │ │515 .grant => .{ .grant = null }, │ │516 - .issue => .{ .issue = null }, │ │516 .discuss => .{ .discuss = null }, │ │517 + .issue => .{ .issue = null }, │ │518 .comment => .{ .comment = null }, │ │519 .attach => .{ .attach = null }, │ │520 .patchrev => .{ .patchrev = null },│ ╰────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1211 const record_maybe: ?Grant.Record = if (event_maybe) |event| .{ .event = event, .created_order = event_order, .updated_order = event_order } else null;│ │1212 try Grant.consume(DB, repo_opts.hash, haxy_moment, &current_event_id, record_maybe, &arena, &repo_event_oid); │ │1213 }, │ │1214 - .issue => |event_maybe| { │ │1215 - const record_maybe: ?Issue.Record = if (event_maybe) |event| .{ │ │1214 + .discuss => |event_maybe| { │ │1215 + const record_maybe: ?Discussion.Record = if (event_maybe) |event| .{ │ │1216 .event = event, │ │1217 .author_email = authorEmail(commit_object.content.commit.metadata.author orelse ""), │ │1218 .created_order = event_order, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1219 .updated_order = event_order, │ │1220 } else null; │ │1221 - try Issue.consume(DB, repo_opts.hash, haxy_moment, &current_event_id, record_maybe, &arena, &repo_event_oid); │ │1221 + try Discussion.consume(DB, repo_opts.hash, haxy_moment, &current_event_id, record_maybe, &arena, &repo_event_oid);│ │1222 }, │ │1223 - .discuss => |event_maybe| { │ │1224 - const record_maybe: ?Discussion.Record = if (event_maybe) |event| .{ │ │1223 + .issue => |event_maybe| { │ │1224 + const record_maybe: ?Issue.Record = if (event_maybe) |event| .{ │ │1225 .event = event, │ │1226 .author_email = authorEmail(commit_object.content.commit.metadata.author orelse ""), │ │1227 .created_order = event_order, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1228 .updated_order = event_order, │ │1229 } else null; │ │1230 - try Discussion.consume(DB, repo_opts.hash, haxy_moment, &current_event_id, record_maybe, &arena, &repo_event_oid);│ │1230 + try Issue.consume(DB, repo_opts.hash, haxy_moment, &current_event_id, record_maybe, &arena, &repo_event_oid); │ │1231 }, │ │1232 .comment => |event_maybe| { │ │1233 const record_maybe: ?Comment.Record = if (event_maybe) |event| .{ │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯