Skip to content

Commit

Permalink
Fix renovate bot danger checks (#1845)
Browse files Browse the repository at this point in the history
  • Loading branch information
siggerzz committed May 11, 2022
1 parent 559a59a commit 3cee6ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions dangerfile.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/* global danger, fail, message */
const { pr } = danger.github;
const bodyAndTitle = (pr.body + pr.title).toLowerCase();
const prAuthor = pr.user.login.toLowerCase();
const isTrivial = bodyAndTitle.includes('#trivial'); // turns off all danger checks
const isRenovateBot = prAuthor === 'renovate'; // turns off all danger checks
const isGlobalConfigUpdate = bodyAndTitle.includes('#globalconfig'); // turns off danger checks for packages outside the root

if (!isTrivial || !isRenovateBot) {
if (!isTrivial) {
const failedChangelogs = [];
const failedVersionBumps = [];
const packageDirectories = [
Expand Down
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
":automergeRequireAllStatusChecks",
"schedule:earlyMondays"
],
"commitMessagePrefix": "renovate -",
"commitMessagePrefix": "renovate - #trivial #globalconfig -",
"packageRules": [
{
"packagePatterns": [
Expand Down

0 comments on commit 3cee6ac

Please sign in to comment.