From 7d562c27a4c1ddef69645e8a64b2015cf5d49f79 Mon Sep 17 00:00:00 2001 From: Tahmid Ahmed Date: Thu, 19 Feb 2026 13:19:08 -0500 Subject: [PATCH] 800: Fix Notion PR links mashing together instead of being \n separated --- .github/scripts/notion/task/index.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/scripts/notion/task/index.ts b/.github/scripts/notion/task/index.ts index 62b4b05e6..9dcd8aa8a 100644 --- a/.github/scripts/notion/task/index.ts +++ b/.github/scripts/notion/task/index.ts @@ -51,6 +51,27 @@ export async function _updateNotionTaskWithPrLink( return; } + // if there already is a url in there, add \n + if (prField.rich_text.length) { + prField.rich_text.push({ + type: "text", + text: { + content: "\n", + link: null, + }, + plain_text: "\n", + href: null, + annotations: { + bold: false, + italic: false, + strikethrough: false, + underline: false, + code: false, + color: "default", + }, + }); + } + prField.rich_text.push({ type: "text", text: {