╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ─────────────╮ │src/ui/Repo/Issues.zig│ ╰──────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2180 │ │2181 switch (src.repo_kind) { │ │2182 inline else => |repo_kind| { │ │2183 - var any_repo = try rp.AnyRepo(repo_kind, .{}).open(io, allocator, .{ .path = src.path }); │ │2183 + var any_repo = try rp.AnyRepo(repo_kind, .{}).open(io, allocator, src.localInitOpts()); │ │2184 defer any_repo.deinit(io, allocator); │ │2185 switch (any_repo) { │ │2186 inline else => |*repo| evt.Issue.update(repo_kind, repo.self_repo_opts, io, allocator, repo, &id_bytes, .{ .resolve = .{│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────╮ │2187 .title = title, │ │2188 .tags = tags, │ │2189 .hunks = hunks.items, │ │2190 - } }, author_email) catch |err| switch (err) {│ │2190 + } }, author) catch |err| switch (err) { │ │2191 // leave the form up for correction │ │2192 error.InvalidFields => return, │ │2193 else => |e| return e, │ ╰───────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2206 if (comptime wasm) return; │ │2207 const io = self.session.io orelse return; │ │2208 const src = self.data.repo_source orelse return; │ │2209 - const author_email = (try self.session.eventAuthorEmail()) orelse return; │ │2209 + const author = (try self.session.eventAuthor()) orelse return; │ │2210 const form = self.issueForm() orelse return; │ │2211 const body_input = &form.children.values()[comment_body_field_index].widget.text_input;│ │2212 const body = try body_input.text(allocator); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2224 const editing = self.data.view == .edit_comment; │ │2225 switch (src.repo_kind) { │ │2226 inline else => |repo_kind| { │ │2227 - var any_repo = try rp.AnyRepo(repo_kind, .{}).open(io, allocator, .{ .path = src.path });│ │2227 + var any_repo = try rp.AnyRepo(repo_kind, .{}).open(io, allocator, src.localInitOpts()); │ │2228 defer any_repo.deinit(io, allocator); │ │2229 switch (any_repo) { │ │2230 inline else => |*repo| if (editing) { │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2231 var comment_id: [evt.event_id_size]u8 = undefined; │ │2232 _ = std.fmt.hexToBytes(&comment_id, self.data.comment_id) catch return; │ │2233 - try evt.Comment.update(repo_kind, repo.self_repo_opts, io, allocator, repo, &thread_id, &comment_id, body, author_email); │ │2233 + try evt.Comment.update(repo_kind, repo.self_repo_opts, io, allocator, repo, &thread_id, &comment_id, body, author); │ │2234 event_id_hex = std.fmt.bytesToHex(comment_id, .lower); │ │2235 } else { │ │2236 - event_id_hex = try evt.Comment.create(repo_kind, repo.self_repo_opts, io, allocator, repo, &thread_id, &parent_id, body, author_email);│ │2236 + event_id_hex = try evt.Comment.create(repo_kind, repo.self_repo_opts, io, allocator, repo, &thread_id, &parent_id, body, author); │ │2237 }, │ │2238 } │ │2239 }, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────╮ │2262 if (comptime wasm) return; │ │2263 const io = self.session.io orelse return; │ │2264 const src = self.data.repo_source orelse return; │ │2265 - const author_email = (try self.session.eventAuthorEmail()) orelse return; │ │2265 + const author = (try self.session.eventAuthor()) orelse return; │ │2266 │ │2267 const form = self.issueForm() orelse return; │ │2268 const title_input = &form.children.values()[title_field_index].widget.text_input;│ ╰───────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────╮ │2285 const event = evt.EventWithId{ │ │2286 .id = event_id_hex, │ │2287 .timestamp = @intCast(std.Io.Timestamp.now(io, .real).toSeconds()),│ │2288 - .author_email = author_email, │ │2288 + .author = author, │ │2289 .event = .{ .issue = .{ │ │2290 .title = title, │ │2291 .description = description, │ ╰─────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2295 │ │2296 switch (src.repo_kind) { │ │2297 inline else => |repo_kind| { │ │2298 - var any_repo = try rp.AnyRepo(repo_kind, .{}).open(io, allocator, .{ .path = src.path }); │ │2298 + var any_repo = try rp.AnyRepo(repo_kind, .{}).open(io, allocator, src.localInitOpts()); │ │2299 defer any_repo.deinit(io, allocator); │ │2300 switch (any_repo) { │ │2301 inline else => |*repo| try evt.consume(repo_kind, repo.self_repo_opts, io, allocator, repo, evt.events_ref, &.{event}),│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────╮ │2320 const io = self.session.io orelse return; │ │2321 const src = self.data.repo_source orelse return; │ │2322 const entry = self.data.selectedIssue() orelse return; │ │2323 - const author_email = (try self.session.eventAuthorEmail()) orelse return; │ │2323 + const author = (try self.session.eventAuthor()) orelse return; │ │2324 │ │2325 const form = self.issueForm() orelse return; │ │2326 const title_input = &form.children.values()[title_field_index].widget.text_input;│ ╰───────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2341 │ │2342 switch (src.repo_kind) { │ │2343 inline else => |repo_kind| { │ │2344 - var any_repo = try rp.AnyRepo(repo_kind, .{}).open(io, allocator, .{ .path = src.path }); │ │2344 + var any_repo = try rp.AnyRepo(repo_kind, .{}).open(io, allocator, src.localInitOpts()); │ │2345 defer any_repo.deinit(io, allocator); │ │2346 switch (any_repo) { │ │2347 inline else => |*repo| try evt.Issue.update(repo_kind, repo.self_repo_opts, io, allocator, repo, &id_bytes, .{ .fields = .{│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯