diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-14 09:40:39 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-14 09:40:39 +0900 |
| commit | b1b657489181a5371bd23cd6803f166e2047248f (patch) | |
| tree | a4096203de5c45afd0c7f3ba68ea41dfbbce397b /src/api | |
| parent | Better GitHub Notifier (diff) | |
| download | sharkey-b1b657489181a5371bd23cd6803f166e2047248f.tar.gz sharkey-b1b657489181a5371bd23cd6803f166e2047248f.tar.bz2 sharkey-b1b657489181a5371bd23cd6803f166e2047248f.zip | |
Better GitHub Notifier
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/service/github.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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]; |