╭ changed ────╮ │src/event.zig│ ╰─────────────╯ ╭───────────────────╮ │59 user, │ │60 repo, │ │61 issue, │ │62 - discussion,│ │62 + discuss, │ │63 comment, │ │64 attach, │ │65 }; │ ╰───────────────────╯ ╭────────────────────────────────╮ │74 user: ?User, │ │75 repo: ?Repo, │ │76 issue: ?Issue, │ │77 - discussion: ?Discussion,│ │77 + discuss: ?Discussion, │ │78 comment: ?Comment, │ │79 attach: ?Attachment, │ │80 }; │ ╰────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │143 else │ │144 null, │ │145 }, │ │146 - .discussion => .{ │ │147 - .discussion = if (json_event.data) |value| │ │146 + .discuss => .{ │ │147 + .discuss = if (json_event.data) |value| │ │148 try std.json.parseFromValueLeaky(Discussion, arena.allocator(), value, .{ .ignore_unknown_fields = true })│ │149 else │ │150 null, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────╮ │203 .user => .{ .user = null }, │ │204 .repo => .{ .repo = null }, │ │205 .issue => .{ .issue = null }, │ │206 - .discussion => .{ .discussion = null },│ │206 + .discuss => .{ .discuss = null }, │ │207 .comment => .{ .comment = null }, │ │208 .attach => .{ .attach = null }, │ │209 }; │ ╰────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │863 } else null; │ │864 try Issue.consume(DB, repo_opts.hash, haxy_moment, &current_event_id, record_maybe, &arena, &repo_event_oid);│ │865 }, │ │866 - .discussion => |event_maybe| { │ │866 + .discuss => |event_maybe| { │ │867 const record_maybe: ?Discussion.Record = if (event_maybe) |event| .{ │ │868 .event = event, │ │869 .author_email = authorEmail(commit_object.content.commit.metadata.author orelse ""), │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ───────────────╮ │src/event/Discussion.zig│ ╰────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │78 │ │79 const record = try DB.HashMap(.read_write).init(try records.putCursor(discussion_key)); │ │80 try evt.upsert(Record, DB, hash_kind, record, record_to_write); │ │81 - try evt.indexEvent(DB, hash_kind, haxy_moment, event_id, .discussion, record_to_write.created_ts, record_to_write.removed);│ │81 + try evt.indexEvent(DB, hash_kind, haxy_moment, event_id, .discuss, record_to_write.created_ts, record_to_write.removed); │ │82 │ │83 const order_key = evt.orderKeyDesc(record_to_write.created_ts, event_id); │ │84 if (existing_cursor_maybe == null) { │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │120 .id = std.fmt.bytesToHex(id.*, .lower), │ │121 .timestamp = @intCast(std.Io.Timestamp.now(io, .real).toSeconds()),│ │122 .author = author, │ │123 - .event = .{ .discussion = .{ │ │123 + .event = .{ .discuss = .{ │ │124 .title = title, │ │125 .tags = tags, │ │126 .description = description, │ ╰────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──╮ │src/try.zig│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │768 .id = std.fmt.bytesToHex(evt.EventWithId.randomId(prng.random()), .lower), │ │769 .timestamp = @intCast(300 + i), │ │770 .author = .{ .name = user_data[i % user_data.len].name, .email = user_data[i % user_data.len].email },│ │771 - .event = .{ .discussion = .{ │ │771 + .event = .{ .discuss = .{ │ │772 .title = discussion.title, │ │773 .description = discussion.description, │ │774 .tags = discussion.tags, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │216 const line_seg = @tagName(Params.ParamKey.line) ++ ":"; │ │217 const theirs_seg = @tagName(Params.ParamKey.theirs) ++ ":"; │ │218 const issue_seg = "issue:"; │ │219 - const discussion_seg = "discussion:"; │ │219 + const discuss_seg = "discuss:"; │ │220 const comment_seg = "comment:"; │ │221 // marks a files or commits route's trailing path: the value is the raw│ │222 // remainder of the url, so it must come last │ ╰────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │399 pub fn repoThreadRoute(kind: evt.EventKind, identity: []const u8, tag: []const u8, selected: []const u8) ?RoutablePage {│ │400 return switch (kind) { │ │401 .issue => repoIssuesRoute(identity, .open, tag, selected), │ │402 - .discussion => repoDiscussionsRoute(identity, tag, selected), │ │402 + .discuss => repoDiscussionsRoute(identity, tag, selected), │ │403 else => null, │ │404 }; │ │405 } │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯