From d8a5c11da80ec15dee038ff5cb91c3dd49e1bce3 Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Mon, 7 Oct 2019 14:31:06 +0800 Subject: [PATCH] Fix formatting --- server.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server.ts b/server.ts index 516db57..592cc3c 100644 --- a/server.ts +++ b/server.ts @@ -74,10 +74,10 @@ GitHub Zen: ${ping.zen}`; }, 'push': (push: GitHubEventPush): string => { const branch = push.ref.replace('refs/heads/', ''); - return `[${push.sender.login}](${push.sender.html_url}): -[${push.commits.length} new commit${push.commits.length == 1 ? "" : "s"}](${push.compare}) ${push.forced ? "force-" : ""}pushed to [\`${branch}\`](${push.repository.branches_url.replace('{/branch}', '/' + branch)}) -${push.commits.map(commit => `\`${commit.id.slice(0, 7)}\` ${commit.message} - ${commit.author.username}`).join('\n')} -[_${push.repository.full_name}_](${push.repository.html_url})`; + return `👤 [${push.sender.login}](${push.sender.html_url}): +[${push.commits.length} new commit${push.commits.length == 1 ? "" : "s"}](${push.compare}) ${push.forced ? "force-" : ""}pushed to \`${branch}\` [🔗](${push.repository.branches_url.replace('{/branch}', '/' + branch)}) +${push.commits.map(commit => `\`${commit.id.slice(0, 7)}\` ${commit.message} [🔗](${commit.url}) - ${commit.author.username}`).join('\n')} +_${push.repository.full_name.replace('_', '_____')}_ [🏠](${push.repository.html_url})`; }, };