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

Better GitHub Notifier

parent 253e1e85
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,8 @@ module.exports = async (app: express.Application) => {
case 'refs/heads/master':
const pusher = event.pusher;
const compare = event.compare;
post(`Pushed by **${pusher.name}**\nCompare changes: ${compare}`);
const commits = event.commits.map(commit => `・${commit.message}`).join('\n');
post(`Pushed by **${pusher.name}**\n${commits}\nCompare changes: ${compare}`);
break;
case 'refs/heads/release':
const commit = event.commits[0];
......
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