1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-12 05:38:12 +09:00
This commit is contained in:
syuilo 2017-03-18 01:42:43 +09:00
parent f0d044c400
commit 827be39858

View File

@ -29,6 +29,16 @@ module.exports = async (app: express.Application) => {
}
});
handler.on('status', event => {
const state = event.state;
switch (state) {
case 'failure':
const commit = event.commit.commit;
post(`🚨BUILD FAILED🚨⚠: ?[${commit.message}](${commit.url})`);
break;
}
});
handler.on('push', event => {
const ref = event.ref;
switch (ref) {