Skip to content

Commit

Permalink
Merge pull request #4 from daleront/master
Browse files Browse the repository at this point in the history
Allows for empty urls or report not available in cards and defaults to build URL
  • Loading branch information
dawshiek authored Jan 29, 2020
2 parents 1e3c83e + 3012c0e commit 744c6ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hooks/post-checkout
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ if [ $TYPE == 'CARD' ]
for i in "${DETAILS[@]}"; do
IFS=, read -r ROW_TITLE ROW_INFO ROW_URL <<< "$i"
if [ $ROW_INFO == "Failed" ]; then FAIL=1; fi
if [[ -z "$ROW_URL" ]] || [[ "${ROW_URL}" == "report not available" ]; then ROW_URL=$BUILD_URL; fi
if [ $ROWS_JSON == "none" ]
then
ROWS_JSON='{ "keyValue":{ "topLabel":"'"$ROW_TITLE"'","content":"'"$ROW_INFO"'","button":{ "textButton":{ "text":"OPEN REPORT","onClick":{ "openLink":{ "url":"'"$ROW_URL"'"}}}}}}'
Expand Down

0 comments on commit 744c6ee

Please sign in to comment.