From 6785cd54bd90e8e8a5fb24621b3ce25164857946 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Fri, 14 Dec 2018 12:09:13 +0100 Subject: [PATCH] refactor: update deprecation message to allow closing --- lib/workers/repository/process/deprecated.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/workers/repository/process/deprecated.js b/lib/workers/repository/process/deprecated.js index 1a687c432e..67fe038026 100644 --- a/lib/workers/repository/process/deprecated.js +++ b/lib/workers/repository/process/deprecated.js @@ -37,16 +37,14 @@ async function raiseDeprecationWarnings(config, packageFiles) { deprecationMessage, packageFiles: depPackageFiles, }, - 'npm dependency is deprecated' + 'dependency is deprecated' ); const issueTitle = `Dependency deprecation warning: ${depName} (${manager})`; let issueBody = deprecationMessage; - issueBody += `\n\nPlease take the actions necessary to rename or substitute this deprecated package and commit to your base branch. If you wish to ignore this deprecation warning and continue using \`${depName}\` as-is, please add it to your [ignoreDeps](https://renovatebot.com/docs/configuration-options/#ignoredeps) array in Renovate config before closing this issue, otherwise another issue will be recreated the next time Renovate runs.`; issueBody += `\n\nAffected package file(s): ${depPackageFiles .map(f => '`' + f + '`') .join(', ')}`; - issueBody += - '\n\n Would you like to disable Renovate\'s deprecation warning issues? Add the following to your config:\n\n```\n"suppressNotifications": ["deprecationWarningIssues"]\n```\n\n'; + issueBody += `\n\nIf you don't care about this, you can close this issue and not be warned about \`${depName}\`'s deprecation again. If you would like to completely disable all future deprecation warnings then add the following to your config:\n\n\`\`\`\n"suppressNotifications": ["deprecationWarningIssues"]\n\`\`\`\n\n`; // istanbul ignore if if (config.dryRun) { logger.info('DRY-RUN: Ensure deprecation warning issue for ' + depName); -- GitLab