mirror of
https://github.com/renovatebot/renovate.git
synced 2024-12-22 21:48:32 +00:00
15 lines
607 B
TypeScript
15 lines
607 B
TypeScript
import { regEx } from '../../../util/regex';
|
|
|
|
export function readOnlyIssueBody(body: string): string {
|
|
return body
|
|
.replace(' only once you click their checkbox below', '')
|
|
.replace(' unless you click a checkbox below', '')
|
|
.replace(' To discard all commits and start over, click on a checkbox.', '')
|
|
.replace(regEx(/ Click (?:on |)a checkbox.*\./g), '')
|
|
.replace(regEx(/\[ ] <!-- \w*-branch.*-->/g), '')
|
|
.replace(regEx(/- \[ ] <!-- rebase-all-open-prs -->.*/g), '')
|
|
.replace(regEx(/ - \[ ] <!-- create-all-rate-limited-prs -->.*/g), '');
|
|
}
|
|
|
|
export default readOnlyIssueBody;
|