mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
Better GitHub Notifier
This commit is contained in:
parent
fc4072e7fd
commit
7b0a232bfd
1 changed files with 2 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue