╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ───────────────╮ │src/test/event/admin.zig│ ╰────────────────────────╯ ╭────────────────────────────────────────────╮ │378 .repo_id = repo_id, │ │379 .title = "add a feature", │ │380 .description = "a draft patch",│ │381 - .tags = "enhancement", │ │381 + .labels = "enhancement", │ │382 .author = author, │ │383 .timestamp = 2, │ │384 }); │ ╰────────────────────────────────────────────╯ ╭ changed ───────────────╮ │src/test/event/patch.zig│ ╰────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │46 const base = try repo.commit(io, allocator, .{ .message = "base" }); │ │47 try repo.addBranch(io, .{ .name = "feature" }); │ │48 const id = [_]u8{7} ** evt.event_id_size; │ │49 - const patch = evt.Patch{ .title = "branch patch", .tags = "feature", .description = "existing branch", .source_branch = "feature", .target_branch = "master" }; │ │49 + const patch = evt.Patch{ .title = "branch patch", .labels = "feature", .description = "existing branch", .source_branch = "feature", .target_branch = "master" };│ │50 │ │51 // the same branch cannot be both source and target │ │52 { │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │71 // retargeting to the source leaves the patch and revision unchanged │ │72 try std.testing.expectError(error.SameBranch, evt.Patch.update(.local, kind, opts, io, allocator, &repo, &id, .{ .fields = .{│ │73 .title = patch.title, │ │74 - .tags = patch.tags, │ │74 + .labels = patch.labels, │ │75 .description = patch.description, │ │76 .target_branch = "feature", │ │77 } }, author)); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────╮ │90 try repo.addBranch(io, .{ .name = "other-target" }); │ │91 try evt.Patch.update(.local, kind, opts, io, allocator, &repo, &id, .{ .fields = .{│ │92 .title = patch.title, │ │93 - .tags = patch.tags, │ │93 + .labels = patch.labels, │ │94 .description = patch.description, │ │95 .target_branch = "other-target", │ │96 } }, author); │ ╰───────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │111 const before_edit = (try repo.readRef(io, evt.events_ref)) orelse return error.NotFound; │ │112 try std.testing.expectError(error.UnrelatedBranches, evt.Patch.update(.local, kind, opts, io, allocator, &repo, &id, .{ .fields = .{│ │113 .title = "edited title", │ │114 - .tags = patch.tags, │ │114 + .labels = patch.labels, │ │115 .description = patch.description, │ │116 .target_branch = "unrelated", │ │117 } }, author)); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────╮ │128 // editing metadata without changing the target must also record a patch edit. │ │129 try evt.Patch.update(.local, kind, opts, io, allocator, &repo, &id, .{ .fields = .{│ │130 .title = "renamed patch", │ │131 - .tags = patch.tags, │ │131 + .labels = patch.labels, │ │132 .description = patch.description, │ │133 .target_branch = "other-target", │ │134 } }, author); │ ╰────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────╮ │188 try pch.writeBranchPatch(.server, .xit, opts, io, allocator, &repo, id_hex, .{│ │189 .title = "merge branch", │ │190 .description = "", │ │191 - .tags = "", │ │191 + .labels = "", │ │192 .source_branch = "feature", │ │193 .target_branch = "master", │ │194 }, null, author); │ ╰───────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────╮ │438 const patch = evt.Patch{ │ │439 .title = "add the answer", │ │440 .description = "adds a reusable answer constant",│ │441 - .tags = "enhancement", │ │441 + .labels = "enhancement", │ │442 .target_branch = "master", │ │443 }; │ │444 const tree_entries = [_]evt.EventTreeEntry{ │ ╰──────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────╮ │680 }, &child_entries, 12, child_id, .{ │ │681 .title = "stack another answer change", │ │682 .description = "depends on the first patch", │ │683 - .tags = "enhancement", │ │683 + .labels = "enhancement", │ │684 .target_branch = "master", │ │685 .target_patch_id = std.fmt.bytesToHex(patch_id, .lower),│ │686 }, 13); │ ╰─────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │753 try std.testing.expectEqual(0, try patchStatusCount(status_moment, .open)); │ │754 try std.testing.expectEqual(1, try patchStatusCount(status_moment, .closed)); │ │755 try std.testing.expectEqual(1, try patchStatusCount(status_moment, .merged)); │ │756 - try std.testing.expectEqual(1, try patchTagStatusCount(status_moment, "enhancement", .merged)); │ │756 + try std.testing.expectEqual(1, try patchLabelStatusCount(status_moment, "enhancement", .merged)); │ │757 const status_conflicts_cursor = try status_moment.getCursor(hash.hashInt(repo_opts.hash, evt.Patch.conflicts_key)) orelse return error.NotFound;│ │758 const status_conflicts = try Repo.DB.SortedMap(.read_only).init(status_conflicts_cursor); │ │759 const child_conflict = try status_conflicts.getCursor(&evt.orderKeyDesc(merged_child_record.created_order, &child_id)); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯