summaryrefslogtreecommitdiff
path: root/src/api
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-03-18 02:06:24 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-03-18 02:06:24 +0900
commite0f80a6baea8199190d5a3a142c55118b553dab9 (patch)
tree799e9d5e93f1151d1403af80a5dde15dd1b991e9 /src/api
parentFix bug (diff)
downloadsharkey-e0f80a6baea8199190d5a3a142c55118b553dab9.tar.gz
sharkey-e0f80a6baea8199190d5a3a142c55118b553dab9.tar.bz2
sharkey-e0f80a6baea8199190d5a3a142c55118b553dab9.zip
:v:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/service/github.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/service/github.ts b/src/api/service/github.ts
index 5c85a87b67..323e064176 100644
--- a/src/api/service/github.ts
+++ b/src/api/service/github.ts
@@ -48,7 +48,7 @@ module.exports = async (app: express.Application) => {
const commits = event.commits;
post([
`Pushed by **${pusher.name}** with ?[${commits.length} commit${commits.length > 1 ? 's' : ''}](${compare}):`,
- commits.map(commit => `・?[${commit.message.split('\n')[0]}](${commit.url})`).join('\n'),
+ commits.map(commit => `・[?[${commit.id.substr(0, 7)}](${commit.url})] ${commit.message.split('\n')[0]}`).join('\n'),
].join('\n'));
break;
case 'refs/heads/release':