summaryrefslogtreecommitdiff
path: root/src/api/service/github.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/service/github.ts')
-rw-r--r--src/api/service/github.ts3
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];