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

Commit

Permalink
修改tg机器人
Browse files Browse the repository at this point in the history
  • Loading branch information
CodFrm committed Apr 13, 2019
1 parent 215a4e7 commit d920717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tg-bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d920717

Please sign in to comment.