summaryrefslogtreecommitdiff
path: root/src/api/service/github.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-03-18 01:22:28 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-03-18 01:22:28 +0900
commitff6ba3f19b04fe4572a591c7c005405162594b85 (patch)
tree6e519e85127f37c4f2332b8cb207afd29b1c6aec /src/api/service/github.ts
parentUse new syntax :v: (diff)
downloadsharkey-ff6ba3f19b04fe4572a591c7c005405162594b85.tar.gz
sharkey-ff6ba3f19b04fe4572a591c7c005405162594b85.tar.bz2
sharkey-ff6ba3f19b04fe4572a591c7c005405162594b85.zip
:v:
Diffstat (limited to 'src/api/service/github.ts')
-rw-r--r--src/api/service/github.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/api/service/github.ts b/src/api/service/github.ts
index 79ebc9104e..c811a38da9 100644
--- a/src/api/service/github.ts
+++ b/src/api/service/github.ts
@@ -37,8 +37,7 @@ 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 Changes](${compare})`,
- '',
+ `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'),
].join('\n'));
break;