mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 22:22:51 +09:00
Resolve #3274
This commit is contained in:
parent
59e229d962
commit
713e9ad5f4
@ -124,6 +124,17 @@ handler.on('issue_comment', event => {
|
|||||||
post(text);
|
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 => {
|
handler.on('watch', event => {
|
||||||
const sender = event.sender;
|
const sender = event.sender;
|
||||||
post(`(((⭐️))) Starred by **${sender.login}** (((⭐️)))`, false);
|
post(`(((⭐️))) Starred by **${sender.login}** (((⭐️)))`, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user