╭ changed ───────────────╮ │src/test/event/patch.zig│ ╰────────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭──────────────────────────────────────────────────────────────╮ │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 } }; │ ╰───────────────────────────────────────────────────────────────╯