mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 07:26:26 +00:00
4f59b62da4
* chore(deps): update dependency prettier to v2 * Run prettier-fix Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
12 lines
288 B
TypeScript
12 lines
288 B
TypeScript
let prev: string;
|
|
|
|
export function print(val: any): string {
|
|
return JSON.stringify(val);
|
|
}
|
|
export function test(val: any): boolean {
|
|
if (['prBody', 'prTitle'].some((str) => str === prev)) {
|
|
return typeof val === 'string' && val.includes('\n');
|
|
}
|
|
prev = val;
|
|
return false;
|
|
}
|