Skip to content

Commit

Permalink
fix: massage rebase check PR comment (renovatebot#22079)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins authored and mjunker committed May 17, 2023
1 parent 85eab06 commit fc84f49
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/modules/platform/azure/index.ts
Expand Up @@ -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), '');
}
Expand Down
4 changes: 4 additions & 0 deletions lib/modules/platform/bitbucket-server/index.ts
Expand Up @@ -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|$)`), '')
Expand Down
4 changes: 4 additions & 0 deletions lib/modules/platform/bitbucket/index.ts
Expand Up @@ -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`), '')
Expand Down
4 changes: 4 additions & 0 deletions lib/modules/platform/codecommit/index.ts
Expand Up @@ -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`), '')
Expand Down

0 comments on commit fc84f49

Please sign in to comment.