mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 17:03:49 +01:00
Update the message
This commit is contained in:
parent
0e686e352c
commit
74122eb509
@ -35,12 +35,16 @@ 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;
|
||||||
const commits = event.commits.map(commit => `・${commit.message}`).join('\n');
|
const commits = event.commits;
|
||||||
post(`Pushed by **${pusher.name}**\n${commits}\nCompare changes: ${compare}`);
|
post([
|
||||||
|
`Pushed by **${pusher.name}** with ${commits.length} commit${commits.length > 1 ? 's' : ''}: ${compare}`,
|
||||||
|
'',
|
||||||
|
commits.map(commit => `・${commit.message.split('\n')[0]}`).join('\n'),
|
||||||
|
].join('\n'));
|
||||||
break;
|
break;
|
||||||
case 'refs/heads/release':
|
case 'refs/heads/release':
|
||||||
const commit = event.commits[0];
|
const commit = event.commits[0];
|
||||||
post(`RELEASED🎉: ${commit.message}`);
|
post(`RELEASED: ${commit.message}`);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user