╭ changed ──╮ │src/try.zig│ ╰───────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │677 } │ │678 │ │679 try evt.consume(.xit, .{}, io, allocator, &template_repo, evt.events_ref, &.{}); │ │680 + │ │681 + // seed a small comment tree on the second-newest issue │ │682 + var comment_ids: [5][evt.event_id_size]u8 = undefined; │ │683 + for (&comment_ids) |*id| id.* = evt.EventWithId.randomId(prng.random()); │ │684 + │ │685 + const comment_bodies = [_][]const u8{ │ │686 + "I can take this. The compatibility scanner already reports which repositories still use the legacy format.", │ │687 + "Can we keep loading legacy plugins for one release after the warning lands? That would give downstream maintainers time to migrate.",│ │688 + "That sounds good. I'll include the scanner output in the warning so each affected plugin is named.", │ │689 + "Please include the replacement manifest path too. That should make the warning actionable without opening the migration guide.", │ │690 + "I'll add release-note text once the warning format is settled.", │ │691 + }; │ │692 + │ │693 + var comment_events: [comment_ids.len]evt.EventWithId = undefined; │ │694 + for (&comment_events, 0..) |*event, i| { │ │695 + event.* = .{ │ │696 + .id = std.fmt.bytesToHex(comment_ids[i], .lower), │ │697 + .timestamp = @intCast(200 + i), │ │698 + .author_email = user_data[(i + 1) % user_data.len].email, │ │699 + .event = .{ .comment = .{ │ │700 + .thread_id = issue_events[issue_events.len - 2].id, │ │701 + .parent_id = switch (i) { │ │702 + 0, 1 => issue_events[issue_events.len - 2].id, │ │703 + 2, 4 => std.fmt.bytesToHex(comment_ids[0], .lower), │ │704 + 3 => std.fmt.bytesToHex(comment_ids[2], .lower), │ │705 + else => unreachable, │ │706 + }, │ │707 + .body = comment_bodies[i], │ │708 + } }, │ │709 + }; │ │710 + } │ │711 + try evt.consume(.xit, .{}, io, allocator, &template_repo, evt.events_ref, &comment_events); │ │712 } │ │713 │ │714 // copy the template to each repo's on-disk location, named by its │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯