Skip to content
Snippets Groups Projects
Commit d3a00ac3 authored by syuilo's avatar syuilo
Browse files

Use new syntax ✌️

parent bc3006f3
No related branches found
No related tags found
No related merge requests found
......@@ -37,9 +37,9 @@ module.exports = async (app: express.Application) => {
const compare = event.compare;
const commits = event.commits;
post([
`Pushed by **${pusher.name}** with ${commits.length} commit${commits.length > 1 ? 's' : ''}: ${compare}`,
`Pushed by **${pusher.name}** with ${commits.length} commit${commits.length > 1 ? 's' : ''}: ?[Compare Changes](${compare})`,
'',
commits.map(commit => `・${commit.message.split('\n')[0]}`).join('\n'),
commits.map(commit => `・?[${commit.message.split('\n')[0]}](${commit.url})`).join('\n'),
].join('\n'));
break;
case 'refs/heads/release':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment