fix: massage rebase check PR comment (#22079)

This commit is contained in:
Rhys Arkins 2023-05-12 08:18:49 +02:00 committed by GitHub
parent 9b96e07391
commit b02856b1fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 0 deletions

View file

@ -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.*?<!-- rebase-check -->.*?\n`), '')
.replace(regEx(/<!--renovate-(?:debug|config-hash):.*?-->/g), '');
}

View file

@ -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.*?<!-- rebase-check -->.*?(\n|$)`), '')

View file

@ -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.*?<!-- rebase-check -->.*?\n`), '')

View file

@ -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.*?<!-- rebase-check -->.*?\n`), '')