Skip to content
This repository was archived by the owner on Apr 25, 2022. It is now read-only.

Commit d920717

Browse files
committed
修改tg机器人
1 parent 215a4e7 commit d920717

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tg-bot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const tgBot = new TelegramBot(botToken, { polling: false });
1313
exec('git log --pretty=format:"%s" ' + (branch == tag ? tag + '..' : commit_range), (err, stdout, stderr) => {
1414
let sendText = '';
1515
let end = '';
16-
if (branch == 'master' && tag) {
16+
if (branch == tag) {
1717
sendText += "*有一个新版本发布*\n";
1818
end = '\n[前去release查看](https://github.com/CodFrm/cxmooc-tools/releases)';
1919
} else {

0 commit comments

Comments
 (0)