Skip to content
Snippets Groups Projects
Commit 827be398 authored by syuilo's avatar syuilo
Browse files

🚨

parent f0d044c4
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment