This commit is contained in:
syuilo 2018-11-16 23:09:33 +09:00
parent 59e229d962
commit 713e9ad5f4
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -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);