mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
🚨
This commit is contained in:
parent
39814d4fbb
commit
411ed3413f
1 changed files with 10 additions and 0 deletions
|
@ -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 => {
|
handler.on('push', event => {
|
||||||
const ref = event.ref;
|
const ref = event.ref;
|
||||||
switch (ref) {
|
switch (ref) {
|
||||||
|
|
Loading…
Reference in a new issue