提交 d9207175 编写于 作者: C CodFrm

修改tg机器人

上级 215a4e74
......@@ -13,7 +13,7 @@ const tgBot = new TelegramBot(botToken, { polling: false });
exec('git log --pretty=format:"%s" ' + (branch == tag ? tag + '..' : commit_range), (err, stdout, stderr) => {
let sendText = '';
let end = '';
if (branch == 'master' && tag) {
if (branch == tag) {
sendText += "*有一个新版本发布*\n";
end = '\n[前去release查看](https://github.com/CodFrm/cxmooc-tools/releases)';
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册