From 3908ebcc09e8786f0c1a133ccf14a8e0a33898b4 Mon Sep 17 00:00:00 2001 From: Philipp Paulweber Date: Fri, 16 Sep 2016 13:10:55 +0200 Subject: [PATCH] Notification Link * fixed/updated 'link' URL to support 'team' configuration in the referenced notification URL in the matrix message - the 'team' parameter is by default the 'main' team - see: http://concourse.ci/downloads.html#v200 - see: http://concourse.ci/teams.html#main-team --- bin/out | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/out b/bin/out index f27e69c..4ecdc7b 100755 --- a/bin/out +++ b/bin/out @@ -41,6 +41,7 @@ always_notify="$(jq -r '.params.always_notify // "false"' < "${payload}")" debug="$(jq -r '.params.debug // "false"' < "${payload}")" silent="$(jq -r '.params.silent // "true"' < "${payload}")" link="$(jq -r '.params.link // "false"' < "${payload}")" +team="$(jq -r '.params.team // "main"' < "${payload}")" prefix="$(jq -r '.params.prefix // ""' < "${payload}")" @@ -56,7 +57,7 @@ then text="$(eval printf ${text} )" [[ -z "${text}" ]] && text="_(missing notification text)_" - [ "${link}" == "true" ] && formatted_body="${text}" + [ "${link}" == "true" ] && formatted_body="${text}" if [ -n "$prefix" ]; then prefix="$(eval printf ${prefix} )" text="${prefix}: ${text}"