summaryrefslogtreecommitdiff
path: root/src/api/service/github.ts
diff options
context:
space:
mode:
authorsyuilo⭐️ <Syuilotan@yahoo.co.jp>2017-03-18 02:47:55 +0900
committerGitHub <noreply@github.com>2017-03-18 02:47:55 +0900
commit1114cead7171675cd6c49bf9ae450b5ec9e68afb (patch)
tree78c1c9f77f9136c2f7fe878ab656e665a339a401 /src/api/service/github.ts
parent1355 (diff)
downloadsharkey-1114cead7171675cd6c49bf9ae450b5ec9e68afb.tar.gz
sharkey-1114cead7171675cd6c49bf9ae450b5ec9e68afb.tar.bz2
sharkey-1114cead7171675cd6c49bf9ae450b5ec9e68afb.zip
Update github.ts
Diffstat (limited to 'src/api/service/github.ts')
-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 323e064176..deb8c192d2 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.id.substr(0, 7)}](${commit.url})] ${commit.message.split('\n')[0]}`).join('\n'),
+ commits.reverse().map(commit => `・[?[${commit.id.substr(0, 7)}](${commit.url})] ${commit.message.split('\n')[0]}`).join('\n'),
].join('\n'));
break;
case 'refs/heads/release':