summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-03-18 01:20:13 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-03-18 01:20:13 +0900
commitd3a00ac38a347a083dd8c9f5a2cebf588ac4db78 (patch)
treea8525a04e2c35fcc0effab8da7c2e6322bb8c3eb /src/api
parent#277 (diff)
downloadsharkey-d3a00ac38a347a083dd8c9f5a2cebf588ac4db78.tar.gz
sharkey-d3a00ac38a347a083dd8c9f5a2cebf588ac4db78.tar.bz2
sharkey-d3a00ac38a347a083dd8c9f5a2cebf588ac4db78.zip
Use new syntax :v:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/service/github.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/service/github.ts b/src/api/service/github.ts
index a6eba3d5e5..79ebc9104e 100644
--- a/src/api/service/github.ts
+++ b/src/api/service/github.ts
@@ -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':