╭ changed ────╮ │src/patch.zig│ ╰─────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────╮ │291 .timestamp = input.timestamp, │ │292 }); │ │293 } │ │294 +} │ │295 + │ │296 +// merge a published patch and remove its fork │ │297 +pub fn mergeAndRemoveFork( │ │298 + comptime repo_opts: rp.RepoOpts(.xit), │ │299 + io: std.Io, │ │300 + allocator: std.mem.Allocator, │ │301 + repo_root_path: []const u8, │ │302 + admin_repo: *rp.Repo(.xit, evt.admin_repo_opts), │ │303 + target_repo: *rp.Repo(.xit, repo_opts), │ │304 + input: MergeInput, │ │305 +) !void { │ │306 + try merge(repo_opts, io, allocator, repo_root_path, target_repo, input); │ │307 + try fork.remove(io, allocator, repo_root_path, admin_repo, &input.id, null, input.author);│ │308 } │ │309 │ │310 fn commitAuthor(line: []const u8) !evt.CommitAuthor { │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────╯