╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ───────────────╮ │src/ui/widget/thread.zig│ ╰────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2801 defer if (comptime supports_drafts) allocator.free(target_branch); │ │2802 │ │2803 - if (!Event.fieldsValid(title, tags)) { │ │2804 - if (!evt.titleValid(title)) try self.rememberThreadFeedback(.required_title, title, tags, description, target_branch); │ │2803 + if (!Event.fieldsValid(title, labels)) { │ │2804 + if (!evt.titleValid(title)) try self.rememberThreadFeedback(.required_title, title, labels, description, target_branch);│ │2805 return; │ │2806 } │ │2807 const src = self.data.repo_source orelse return; │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2808 │ │2809 if (comptime supports_drafts) { │ │2810 if (entryDraft(entry.*)) { │ │2811 - self.data.editDraft(self.session, allocator, author, entry.id, title, tags, description, target_branch) catch |err| { │ │2811 + self.data.editDraft(self.session, allocator, author, entry.id, title, labels, description, target_branch) catch |err| {│ │2812 const failure = FeedbackFailure.fromError(err) orelse return err; │ │2813 - try self.rememberThreadFeedback(failure, title, tags, description, target_branch); │ │2813 + try self.rememberThreadFeedback(failure, title, labels, description, target_branch); │ │2814 return; │ │2815 }; │ │2816 const route = listRoute(self.data.identity, entryStatus(entry.*), "", entry.id) orelse return; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2830 inline else => |*repo| if (supports_drafts) { │ │2831 Event.update(self.session.data.host_kind, repo_kind, repo.self_repo_opts, io, allocator, repo, &id_bytes, .{ .fields = .{│ │2832 .title = title, │ │2833 - .tags = tags, │ │2833 + .labels = labels, │ │2834 .description = description, │ │2835 .target_branch = target_branch, │ │2836 } }, author) catch |err| { │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2837 const failure = FeedbackFailure.fromError(err) orelse return err; │ │2838 - try self.rememberThreadFeedback(failure, title, tags, description, target_branch); │ │2838 + try self.rememberThreadFeedback(failure, title, labels, description, target_branch);│ │2839 return; │ │2840 }; │ │2841 } else if (has_status) │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2842 try Event.update(self.session.data.host_kind, repo_kind, repo.self_repo_opts, io, allocator, repo, &id_bytes, .{ .fields = .{│ │2843 .title = title, │ │2844 - .tags = tags, │ │2844 + .labels = labels, │ │2845 .description = description, │ │2846 } }, author) │ │2847 else │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2848 - try Event.update(self.session.data.host_kind, repo_kind, repo.self_repo_opts, io, allocator, repo, &id_bytes, title, tags, description, author), │ │2848 + try Event.update(self.session.data.host_kind, repo_kind, repo.self_repo_opts, io, allocator, repo, &id_bytes, title, labels, description, author),│ │2849 } │ │2850 }, │ │2851 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2854 try self.session.navigate(route); │ │2855 } │ │2856 │ │2857 - fn rememberThreadFeedback(self: *This, failure: FeedbackFailure, title: []const u8, tags: []const u8, description: []const u8, target_branch: []const u8) !void { │ │2857 + fn rememberThreadFeedback(self: *This, failure: FeedbackFailure, title: []const u8, labels: []const u8, description: []const u8, target_branch: []const u8) !void {│ │2858 const aa = self.session.arena.allocator(); │ │2859 const source = if (supports_drafts) blk: { │ │2860 const form = self.threadForm() orelse break :blk null; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────╮ │2864 .failure = failure, │ │2865 .fields = if (comptime supports_drafts) .{ │ │2866 .title = try aa.dupe(u8, title), │ │2867 - .tags = try aa.dupe(u8, tags), │ │2867 + .labels = try aa.dupe(u8, labels), │ │2868 .description = try aa.dupe(u8, description), │ │2869 .target_branch = try aa.dupe(u8, target_branch), │ │2870 .source_branch = if (source) |value| try value.field().text(aa) else "",│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────╮ │2871 .source_kind = if (source) |value| value.selectedKind() else .fork,│ │2872 } else .{ │ │2873 .title = try aa.dupe(u8, title), │ │2874 - .tags = try aa.dupe(u8, tags), │ │2874 + .labels = try aa.dupe(u8, labels), │ │2875 .description = try aa.dupe(u8, description), │ │2876 }, │ │2877 }); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──╮ │src/web.zig│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │414 }; │ │415 } │ │416 │ │417 -fn requiredTitleFeedback(kind: evt.EventKind, title: []const u8, tags: []const u8, description: []const u8, target_branch: []const u8, source_branch: ?[]const u8) ui.Session.FormFeedback { │ │417 +fn requiredTitleFeedback(kind: evt.EventKind, title: []const u8, labels: []const u8, description: []const u8, target_branch: []const u8, source_branch: ?[]const u8) ui.Session.FormFeedback {│ │418 return switch (kind) { │ │419 .issue => .{ .issue = .{ .failure = .required_title, .fields = .{ │ │420 .title = title, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯