Skip to content
Snippets Groups Projects
Commit 6785cd54 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

refactor: update deprecation message to allow closing

parent 3988fb80
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment