╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ───────────────╮ │src/test/event/patch.zig│ ╰────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────╮ │574 const patch_id = evt.EventWithId.randomId(prng.random()); │ │575 const patch_id_hex = std.fmt.bytesToHex(patch_id, .lower); │ │576 const draft_path = try fork.create(repo_opts, io, allocator, repos_dir, &admin, .{│ │577 + .target_branch = "master", │ │578 .id = patch_id_hex, │ │579 .user_id = user_id, │ │580 .repo_id = repo_id, │ ╰───────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │630 try consumePatchWithRevision(.fork, io, allocator, &draft, evt.events_ref, first_patchrev_id, .{│ │631 .base_oid = &base_oid, │ │632 .source_oid = &source_oid, │ │633 - .target_ref = "refs/heads/master", │ │633 .message = "add the answer", │ │634 }, &first_entries, 3, patch_id, .{ │ │635 .title = "add the answer", │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────╮ │636 .tags = "enhancement", │ │637 .description = "adds a reusable answer constant",│ │638 + .target_branch = "master", │ │639 }, 3); │ │640 │ │641 _ = arena.reset(.retain_capacity); │ ╰──────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────╮ │660 .title = "explain the answer", │ │661 .tags = "documentation", │ │662 .description = "describes the existing answer",│ │663 + .target_branch = "master", │ │664 .author = author, │ │665 .timestamp = 3, │ │666 }); │ ╰────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────╮ │697 .title = "explain the answer", │ │698 .tags = "enhancement documentation", │ │699 .description = "adds and explains a reusable answer constant",│ │700 + .target_branch = "master", │ │701 .author = author, │ │702 .timestamp = 4, │ │703 })); │ ╰───────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │748 try std.testing.expect(removed.removed); │ │749 const revision = (try evt.PatchRev.readById(Repo.DB, repo_opts.hash, draft_moment, &arena, &first_patchrev_id)) orelse return error.NotFound;│ │750 @memcpy(&squash_oid, revision.patch_oid); │ │749 - try std.testing.expectEqualStrings("refs/heads/master", revision.event.target_ref); │ │751 + try std.testing.expectEqualStrings("master", removed.event.target_branch); │ │752 try std.testing.expectEqual(hash.hexLen(repo_opts.hash), revision.event_oid.len); │ │753 var event_oid: [hash.hexLen(repo_opts.hash)]u8 = undefined; │ │754 @memcpy(&event_oid, revision.event_oid); │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────╮ │585 .title = "add a feature", │ │586 .description = "a draft patch", │ │587 .tags = "enhancement", │ │588 + .target_branch = "master", │ │589 .author = .{ .name = "admin", .email = "admin@example.test" },│ │590 .timestamp = 1, │ │591 }); │ ╰───────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │615 break :blk try client.commit(io, allocator, .{ .message = "add feature" }); │ │616 }; │ │617 │ │617 - const remote_url = try std.fmt.allocPrint(allocator, "git@localhost:fork/admin/target/patch:{s}/branch:master", .{&fork_id_hex});│ │618 + const remote_url = try std.fmt.allocPrint(allocator, "git@localhost:fork/admin/target/patch:{s}", .{&fork_id_hex}); │ │619 defer allocator.free(remote_url); │ │620 try client.addRemote(io, allocator, .{ .name = "patch", .value = remote_url }); │ │621 try client.push(io, allocator, "patch", "master:patch", false, .{ .wire = .{ .ssh = .{ .command = ssh_cmd } } }); │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │631 try std.testing.expect(!patch.removed); │ │632 try std.testing.expectEqualStrings(&source_oid, &(try draft.readRef(io, fork.ref) orelse return error.NotFound)); │ │633 const selected = patch.event.revision orelse return error.NotFound; │ │633 - try std.testing.expectEqualStrings("refs/heads/master", selected.target_ref); │ │634 + try std.testing.expectEqualStrings("master", patch.event.target_branch); │ │635 try std.testing.expectEqualStrings(&source_oid, selected.source_oid); │ │636 first_revision_id = try evt.parseEventId(&selected.id); │ │637 const revision = (try evt.PatchRev.readById(evt.EventDB(.sha1), .sha1, moment, &arena, &first_revision_id)) orelse return error.NotFound;│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────╮ │637 - try std.testing.expectEqualStrings("refs/heads/master", revision.event.target_ref);│ │638 try std.testing.expectEqualStrings(&source_oid, revision.event.source_oid); │ │639 } │ │640 │ ╰────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯