Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit 021f187

Browse files
If there's not a known replacement, still mention it as deprecated, but suggest searching for it and posting back on tracking issue
1 parent 45900c0 commit 021f187

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/hubot-scripts.coffee

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ HubotScripts.deprecate = (robot, filename) ->
2222

2323
replacement = replacements[filename]
2424
if replacement
25-
robot.logger.warning "#{filename} in hubot-scripts.json has moved to its own package. Remove it from hubot-scripts.json and see #{replacement} for how to install the new version"
25+
robot.logger.warning "#{filename} in hubot-scripts.json has moved to its own package. Remove it from hubot-scripts.json and see #{replacement} for how to install the new package."
2626
deprecatedScriptsUsed.push(filename)
27+
else
28+
inferredPackageName = "hubot-#{filename.replace('.coffee', '')}"
29+
robot.logger.warning "#{filename} in hubot-scripts.json has been deprecated without a known replacement yet. You can try https://www.npmjs.com/search?q=#{inferredPackageName} or https://github.com/search?q=#{inferredPackageName}&type=Repositories or your favorite search engine. If you find a replacement or can't find a replacement, please leave a comment on https://github.com/github/hubot-scripts/issues/1641 with what you found."
30+
2731

2832
module.exports = HubotScripts

0 commit comments

Comments
 (0)