╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ───────────────╮ │src/test/event/patch.zig│ ╰────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │776 .event = .{ .patch = .{ │ │777 .title = "invalid merged patch", │ │778 .description = "has no revision", │ │779 - .tags = "enhancement", │ │779 + .labels = "enhancement", │ │780 .target_branch = "master", │ │781 .status = .{ .merged = .{ .revision = .source, .patchrev_id = std.fmt.bytesToHex(invalid_merged_id, .lower) } },│ │782 } }, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────╮ │882 .user_id = user_id, │ │883 .repo_id = repo_id, │ │884 .title = "add the answer", │ │885 - .tags = "enhancement", │ │885 + .labels = "enhancement", │ │886 .description = "adds a reusable answer constant",│ │887 .author = author, │ │888 .timestamp = 2, │ ╰──────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────╮ │936 .message = "add the answer", │ │937 }, &first_entries, 3, patch_id, .{ │ │938 .title = "add the answer", │ │939 - .tags = "enhancement", │ │939 + .labels = "enhancement", │ │940 .description = "adds a reusable answer constant",│ │941 .target_branch = "master", │ │942 }, 3); │ ╰──────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────╮ │966 .user_id = user_id, │ │967 .repo_id = repo_id, │ │968 .title = "explain the answer", │ │969 - .tags = "documentation", │ │969 + .labels = "documentation", │ │970 .description = "describes the existing answer",│ │971 .target_branch = "master", │ │972 .author = author, │ ╰────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────╮ │1003 .user_id = user_id, │ │1004 .repo_id = repo_id, │ │1005 .title = "explain the answer", │ │1006 - .tags = "enhancement documentation", │ │1006 + .labels = "enhancement documentation", │ │1007 .description = "adds and explains a reusable answer constant",│ │1008 .target_branch = "master", │ │1009 .author = author, │ ╰────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1142 return try ids.count(); │ │1143 } │ │1144 │ │1145 -fn patchTagStatusCount(moment: Repo.DB.HashMap(.read_only), tag: []const u8, status: evt.Patch.StatusKind) !u64 { │ │1146 - const tags_cursor = try moment.getCursor(hash.hashInt(repo_opts.hash, evt.Patch.tag_status_to_id_set_key)) orelse return 0; │ │1147 - const tags = try Repo.DB.SortedMap(.read_only).init(tags_cursor); │ │1148 - var key_buffer: evt.Patch.TagStatusKey = undefined; │ │1149 - const ids_cursor = try tags.getCursor(try evt.Patch.tagStatusKey(&key_buffer, tag, status)) orelse return 0; │ │1145 +fn patchLabelStatusCount(moment: Repo.DB.HashMap(.read_only), label: []const u8, status: evt.Patch.StatusKind) !u64 { │ │1146 + const labels_cursor = try moment.getCursor(hash.hashInt(repo_opts.hash, evt.Patch.label_status_to_id_set_key)) orelse return 0;│ │1147 + const labels = try Repo.DB.SortedMap(.read_only).init(labels_cursor); │ │1148 + var key_buffer: evt.Patch.LabelStatusKey = undefined; │ │1149 + const ids_cursor = try labels.getCursor(try evt.Patch.labelStatusKey(&key_buffer, label, status)) orelse return 0; │ │1150 const ids = try Repo.DB.SortedSet(.read_only).init(ids_cursor); │ │1151 return try ids.count(); │ │1152 } │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────╮ │1216 // local edits and server comments leave checks alone│ │1217 var edit = evt.Patch.Update{ .fields = .{ │ │1218 .title = "edit the answer", │ │1219 - .tags = patch.tags, │ │1219 + .labels = patch.labels, │ │1220 .description = patch.description, │ │1221 .target_branch = patch.target_branch, │ │1222 } }; │ ╰───────────────────────────────────────────────────────────────╯ ╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────╮ │552 .repo_id = repo_id, │ │553 .title = "add a feature", │ │554 .description = "a draft patch", │ │555 - .tags = "enhancement", │ │555 + .labels = "enhancement", │ │556 .target_branch = "master", │ │557 .author = .{ .name = "admin", .email = "admin@example.test" },│ │558 .timestamp = 1, │ ╰───────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │635 try evt.Patch.update(.server, .xit, repo_opts, io, allocator, &target, &fork_id, .{ .fields = .{│ │636 .title = "edited feature", │ │637 .description = patch.event.description, │ │638 - .tags = patch.event.tags, │ │638 + .labels = patch.event.labels, │ │639 .target_branch = "feature", │ │640 } }, .{ .name = "admin", .email = "admin@example.test" }); │ │641 } │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │982 .issue = .{ │ │983 .title = "Login form clears password on validation error", │ │984 .description = "Submitting an invalid email address resets the password field. Preserve the field value and show an inline validation message.",│ │985 - .tags = "bug priority-high ui", │ │985 + .labels = "bug priority-high ui", │ │986 }, │ │987 }, │ │988 }, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯