test(release): keep credits attached to their contribution

This commit is contained in:
morluto 2026-10-11 11:51:17 +08:00
parent 6b043dc3de
commit a99857df23
1 changed files with 4 additions and 0 deletions

View File

@ -270,6 +270,10 @@ it("rejects lost grouped credits, fabricated references, bots, and stale PR bodi
throw new Error("Fixture is missing its direct contribution");
for (const [replacement, error] of [
[f.bullet.replace(", @bob", ""), "Missing Thanks @bob"],
[
f.bullet.replace(", @bob", "") + "\n- Thanks @bob for other work.",
"Missing Thanks @bob",
],
[f.bullet + " (#999)", "Unknown release reference #999"],
[f.bullet + "a".repeat(65_536), "inline PR body limit"],
[f.bullet + "汉".repeat(43_000), "GitHub's body budget"],