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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tg-bot.js

+1-1
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)