From 2e9d446b5c0bd517ded11a0eb82b85f55c6806b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sevilla=20Mart=C3=ADn?= Date: Tue, 16 May 2017 15:26:58 -0400 Subject: [PATCH] fix(gitlab: events) tag_push: fix space between tag commit & text --- lib/Gitlab/Events/tag_push.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Gitlab/Events/tag_push.js b/lib/Gitlab/Events/tag_push.js index ebd1f8c..3500f46 100644 --- a/lib/Gitlab/Events/tag_push.js +++ b/lib/Gitlab/Events/tag_push.js @@ -16,7 +16,7 @@ class TagPush extends EventResponse { return { color: 0xF0C330, - title: `${this.isCreated(data) ? 'Created' : 'Deleted'} tag \`${tag}\` ${sha ? `from commit \`${sha}\`` : ''}${isCreated ? `with ${commitCount} ${commitCount !== 1 ? 'commits' : 'commit'}` : ''}`, + title: `${this.isCreated(data) ? 'Created' : 'Deleted'} tag \`${tag}\` ${sha ? `from commit \`${sha}\`` : ''}${isCreated ? ` with ${commitCount} ${commitCount !== 1 ? 'commits' : 'commit'}` : ''}`, url: isCreated ? `${data.project.web_url}/tags/${tag}` : null, description: `${message.slice(0, 2000)}${message.length > 2000 ? '...' : ''}`, };