From 7b0a232bfdbf6bac938be0f5666a4809a4b91298 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 18805774f..630083604 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];