From b02856b1fce818ad5f2e8cb1cc70805fa7033c6a Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Fri, 12 May 2023 08:18:49 +0200 Subject: [PATCH] fix: massage rebase check PR comment (#22079) --- lib/modules/platform/azure/index.ts | 4 ++++ lib/modules/platform/bitbucket-server/index.ts | 4 ++++ lib/modules/platform/bitbucket/index.ts | 4 ++++ lib/modules/platform/codecommit/index.ts | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/lib/modules/platform/azure/index.ts b/lib/modules/platform/azure/index.ts index f5b39106638bb2..3790df6c7524fa 100644 --- a/lib/modules/platform/azure/index.ts +++ b/lib/modules/platform/azure/index.ts @@ -775,6 +775,10 @@ export function massageMarkdown(input: string): string { 'you tick the rebase/retry checkbox', 'rename PR to start with "rebase!"' ) + .replace( + 'checking the rebase/retry box above', + 'renaming the PR to start with "rebase!"' + ) .replace(regEx(`\n---\n\n.*?.*?\n`), '') .replace(regEx(//g), ''); } diff --git a/lib/modules/platform/bitbucket-server/index.ts b/lib/modules/platform/bitbucket-server/index.ts index b8258e58043656..5ce4aa5e9a443f 100644 --- a/lib/modules/platform/bitbucket-server/index.ts +++ b/lib/modules/platform/bitbucket-server/index.ts @@ -974,6 +974,10 @@ export function massageMarkdown(input: string): string { 'you tick the rebase/retry checkbox', 'rename PR to start with "rebase!"' ) + .replace( + 'checking the rebase/retry box above', + 'renaming the PR to start with "rebase!"' + ) .replace(regEx(/<\/?summary>/g), '**') .replace(regEx(/<\/?details>/g), '') .replace(regEx(`\n---\n\n.*?.*?(\n|$)`), '') diff --git a/lib/modules/platform/bitbucket/index.ts b/lib/modules/platform/bitbucket/index.ts index b76e66576851c6..979384249c6666 100644 --- a/lib/modules/platform/bitbucket/index.ts +++ b/lib/modules/platform/bitbucket/index.ts @@ -519,6 +519,10 @@ export function massageMarkdown(input: string): string { 'you tick the rebase/retry checkbox', 'by renaming this PR to start with "rebase!"' ) + .replace( + 'checking the rebase/retry box above', + 'renaming the PR to start with "rebase!"' + ) .replace(regEx(/<\/?summary>/g), '**') .replace(regEx(/<\/?(details|blockquote)>/g), '') .replace(regEx(`\n---\n\n.*?.*?\n`), '') diff --git a/lib/modules/platform/codecommit/index.ts b/lib/modules/platform/codecommit/index.ts index e689415cb39457..0e93116c889c0b 100644 --- a/lib/modules/platform/codecommit/index.ts +++ b/lib/modules/platform/codecommit/index.ts @@ -307,6 +307,10 @@ export function massageMarkdown(input: string): string { 'you tick the rebase/retry checkbox', 'rename PR to start with "rebase!"' ) + .replace( + 'checking the rebase/retry box above', + 'renaming the PR to start with "rebase!"' + ) .replace(regEx(/<\/?summary>/g), '**') .replace(regEx(/<\/?details>/g), '') .replace(regEx(`\n---\n\n.*?.*?\n`), '')