From b1b657489181a5371bd23cd6803f166e2047248f Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 14 Mar 2017 09:40:39 +0900 Subject: [PATCH] Better GitHub Notifier --- src/api/service/github.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/service/github.ts b/src/api/service/github.ts index 18805774fd..630083604f 100644 --- a/src/api/service/github.ts +++ b/src/api/service/github.ts @@ -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];