Files
renovate/lib/modules/platform/utils/read-only-issue-body.ts
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00

14 lines
559 B
TypeScript

import { regEx } from '../../../util/regex.ts';
export function readOnlyIssueBody(body: string): string {
return body
.replace(regEx(/ To.*?, click on a checkbox below\./g), '')
.replace(regEx(/\[ ] <!-- \w*-branch.*-->/g), '')
.replace(regEx(/ - \[ ] <!-- create-config-migration-pr -->.*/g), '')
.replace(regEx(/ - \[ ] <!-- approve-all-[\w-]*-prs -->.*/g), '')
.replace(regEx(/ - \[ ] <!-- create-all-[\w-]*-prs -->.*/g), '')
.replace(regEx(/ - \[ ] <!-- rebase-all-[\w-]*-prs -->.*/g), '');
}
export default readOnlyIssueBody;