Skip to content

Commit

Permalink
fix(pie-monorepo): DSW-000 stop danger flagging renovate pr checkboxes (
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleynolan authored Mar 5, 2024
1 parent 67120d9 commit 8a73379
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/tiny-pumas-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"pie-monorepo": patch
---

[Fixed] - danger flagging automated prs
4 changes: 2 additions & 2 deletions dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}

0 comments on commit 8a73379

Please sign in to comment.