From: Marvin Schenkel Date: Thu, 15 Jan 2026 12:33:40 +0000 (+0100) Subject: Fix backport pipeline X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=6fa870d53105da77b0b8f720c18adfc81cdc4681;p=music-assistant-server.git Fix backport pipeline --- diff --git a/.github/workflows/backport-to-stable.yml b/.github/workflows/backport-to-stable.yml index 4dd49a87..2969347d 100644 --- a/.github/workflows/backport-to-stable.yml +++ b/.github/workflows/backport-to-stable.yml @@ -235,14 +235,14 @@ jobs: let body = pr.body || ''; if (!body.includes(cherry_commit.substring(0,7))) { - // Try to find the start of the list - const listMatch = body.match(/(cherry-picked commits:\n\n)([\s\S]*)/); + // Try to find the start of the list (case-insensitive) + const listMatch = body.match(/(cherry-picked commits:\n\n)([\s\S]*)/i); if (listMatch) { // Append to existing list const before = listMatch[1]; const list = listMatch[2].trim(); const newList = list + '\n' + commit_item; - body = body.replace(/(cherry-picked commits:\n\n)([\s\S]*)/, before + newList); + body = body.replace(/(cherry-picked commits:\n\n)([\s\S]*)/i, before + newList); } else { // Add new list body = body.trim() + `\n\nCherry-picked commits:\n\n${commit_item}`;