╭ changed ────╮ │src/event.zig│ ╰─────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │423 .fork => .{ │ │424 .fork = if (json_event.data) |value| │ │425 try std.json.parseFromValueLeaky(Fork, arena.allocator(), value, .{ .ignore_unknown_fields = true }) │ │426 + else │ │427 + null, │ │428 + }, │ │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 }, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────╮ │512 .user => .{ .user = null }, │ │513 .repo => .{ .repo = null }, │ │514 .fork => .{ .fork = null }, │ │515 + .grant => .{ .grant = null }, │ │516 .issue => .{ .issue = null }, │ │517 .discuss => .{ .discuss = null },│ │518 .comment => .{ .comment = null },│ ╰──────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1207 const record_maybe: ?Fork.Record = if (event_maybe) |event| .{ .event = event, .created_order = event_order, .updated_order = event_order } else null; │ │1208 try Fork.consume(DB, repo_opts.hash, haxy_moment, &current_event_id, record_maybe, &arena, &repo_event_oid); │ │1209 }, │ │1210 + .grant => |event_maybe| { │ │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| .{ │ │1216 .event = event, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────╮ │1814 .attach => Attachment.record_map_key, │ │1815 .patchrev => PatchRev.record_map_key, │ │1816 .patch => Patch.record_map_key, │ │1774 - .user, .repo, .fork => return null, │ │1817 + .user, .repo, .fork, .grant => return null,│ │1818 }; │ │1819 │ │1820 const DB = EventDB(repo_opts.hash); │ ╰─────────────────────────────────────────────────────────╯