forked from FoundKeyGang/FoundKey
Resolve #3274
This commit is contained in:
parent
59e229d962
commit
713e9ad5f4
1 changed files with 11 additions and 0 deletions
|
@ -124,6 +124,17 @@ handler.on('issue_comment', event => {
|
|||
post(text);
|
||||
});
|
||||
|
||||
handler.on('release', event => {
|
||||
const action = event.action;
|
||||
const release = event.release;
|
||||
let text: string;
|
||||
switch (action) {
|
||||
case 'published': text = `🎁 **NEW RELEASE**: [${release.tag_name}](${release.html_url})`; break;
|
||||
default: return;
|
||||
}
|
||||
post(text);
|
||||
});
|
||||
|
||||
handler.on('watch', event => {
|
||||
const sender = event.sender;
|
||||
post(`(((⭐️))) Starred by **${sender.login}** (((⭐️)))`, false);
|
||||
|
|
Loading…
Reference in a new issue