mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-25 21:43:09 +02:00
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);
|
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 a new issue