From c9c32664bb8fc351ca637c23b47694f367829f84 Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Mon, 28 Nov 2016 10:59:30 +0100 Subject: [PATCH] Don't indicate git ref if master branch --- lib/github.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/github.js b/lib/github.js index 3492a56..234bcf6 100644 --- a/lib/github.js +++ b/lib/github.js @@ -52,6 +52,12 @@ const splittedURL = fullURL => { ref = ref.substring(0, 7) } + // We're deploying master by default, + // so there's no need to indicate it explicitly + if (ref === 'master') { + ref = '' + } + return {main, ref} }