diff --git a/danger/dangerfile.js b/danger/dangerfile.js index 24bbb7335..b66fd0ac5 100644 --- a/danger/dangerfile.js +++ b/danger/dangerfile.js @@ -95,8 +95,8 @@ if (isSubmittedByTaskforce) { } // Warns if the bots whitelist file is updated. -const isBotsCommandsFile = path => includes(path, 'bots/IssueCommands.txt'); -if (isBotsCommandsFile) { +const issueCommandsFileModified = includes(danger.git.modified_files, 'bots/IssueCommands.txt'); +if (issueCommandsFileModified) { const message = ':exclamation: Bots'; const idea = 'This PR appears to modify the list of people that may issue commands to the ' + 'GitHub bot.';