fix(formatter): link branch and tag titles

This commit is contained in:
RhenCloud committed 2026-10-01 18:40:02 +08:00
1 parent b7fd31a665
commit 3567c6d321
7 files changed
+45 -8

No files matched your search

+10
View File
@@ -100,6 +100,16 @@ describe("discord role mentions", () => {
icon_url: "https://github.com/fluidicon.png",
});
});
it("links the repository heading for a tag title", () => {
const out = renderNeutralMessage({
title: "acme/widget: 🏷️ Created tag v1.0",
url: "https://github.com/acme/widget/releases/tag/v1.0",
});
expect(out.embeds?.[0]?.title).toBe("acme/widget");
expect(out.embeds?.[0]?.url).toBe("https://github.com/acme/widget/releases/tag/v1.0");
expect(out.embeds?.[0]?.description).toBe("🏷️ Created tag v1.0");
});
});
describe("dispatchEvent fallback routing", () => {