Better GitHub Notifier
This commit is contained in:
parent
253e1e851c
commit
b1b6574891
|
@ -35,7 +35,8 @@ module.exports = async (app: express.Application) => {
|
||||||
case 'refs/heads/master':
|
case 'refs/heads/master':
|
||||||
const pusher = event.pusher;
|
const pusher = event.pusher;
|
||||||
const compare = event.compare;
|
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;
|
break;
|
||||||
case 'refs/heads/release':
|
case 'refs/heads/release':
|
||||||
const commit = event.commits[0];
|
const commit = event.commits[0];
|
||||||
|
|
Loading…
Reference in New Issue