Skip to content

Commit 96c5487

Browse files
committed
DEPRECATED
1 parent 218ac6d commit 96c5487

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

bump-version-bot/index.js

+23
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,25 @@ github.authenticate({
3636
token: GITHUB_ACCESS_TOKEN
3737
});
3838

39+
var format = function(args) {
40+
return {
41+
'attachments': [{
42+
'text': args.text,
43+
'color': args.color,
44+
}],
45+
'icon_emoji': config.slack.icon_emoji,
46+
'username': config.slack.username,
47+
}
48+
}
49+
3950
controller.hears(['^bot\\s+bump\\s+now'],
4051
['message_received', 'ambient'],
4152
function(bot, message) {
53+
return bot.reply(message, format({
54+
text: 'DEPRECATED: Use version-bot instead',
55+
color: '#ff0000',
56+
}));
57+
/*
4258
exec(__dirname + '/now.sh', function(err, stdout, stderr) {
4359
if (err) {
4460
return bot.reply(message, {
@@ -53,11 +69,17 @@ controller.hears(['^bot\\s+bump\\s+now'],
5369
username: config.slack.username,
5470
});
5571
});
72+
*/
5673
});
5774

5875
controller.hears(['^bot\\s+bump\\s+(\\d+\.\\d+\.\\d+)'],
5976
['message_received', 'ambient'],
6077
function(bot, message) {
78+
return bot.reply(message, format({
79+
text: 'DEPRECATED: Use version-bot instead',
80+
color: '#ff0000',
81+
}));
82+
/*
6183
var version = message.match[1];
6284
if (! version.match(/^\d+\.\d+\.\d+/)) {
6385
return bot.reply(message, {
@@ -169,4 +191,5 @@ controller.hears(['^bot\\s+bump\\s+(\\d+\.\\d+\.\\d+)'],
169191
});
170192
});
171193
});
194+
*/
172195
});

bump-version-bot/usage.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,8 @@
99
"text": "A bot to bump version of zplug on Slack",
1010
"fields": [
1111
{
12-
"title": "bot bump now",
13-
"value": "show current version",
14-
"short": false
15-
},
16-
{
17-
"title": "bot bump {n.n.n}",
18-
"value": "bump version",
12+
"title": "DEPRECATED",
13+
"value": "Use version-bot instead",
1914
"short": false
2015
}
2116
],

0 commit comments

Comments
 (0)