From 8a733799f1cbd517e70f637f063dd07d865ddbc9 Mon Sep 17 00:00:00 2001 From: Ashley Watson-Nolan Date: Tue, 5 Mar 2024 11:30:35 +0000 Subject: [PATCH] fix(pie-monorepo): DSW-000 stop danger flagging renovate pr checkboxes (#1316) --- .changeset/tiny-pumas-relate.md | 5 +++++ dangerfile.js | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/tiny-pumas-relate.md diff --git a/.changeset/tiny-pumas-relate.md b/.changeset/tiny-pumas-relate.md new file mode 100644 index 0000000000..badc8d5e64 --- /dev/null +++ b/.changeset/tiny-pumas-relate.md @@ -0,0 +1,5 @@ +--- +"pie-monorepo": patch +--- + +[Fixed] - danger flagging automated prs diff --git a/dangerfile.js b/dangerfile.js index 27821f5d2b..b61fb11323 100644 --- a/dangerfile.js +++ b/dangerfile.js @@ -34,7 +34,7 @@ danger.git.created_files.filter((filepath) => filepath.includes('.changeset/') & }); }); -// Check for empty PR Description checkboxes -if (pr.body.includes('- [ ]')) { +// Check for empty PR Description checkboxes - but not for automated version PRs +if (pr.body.includes('- [ ]') && (pr.user.login !== 'dependabot[bot]' && pr.user.login !== 'renovate[bot]')) { fail('You currently have an unchecked checklist item in your PR description.\n\nPlease confirm this check has been carried out – if it\'s not relevant to your PR, delete this line from the PR checklist.'); }