From 2badd90bf6c62b1a9d4fe00078b44ddd592e5642 Mon Sep 17 00:00:00 2001 From: Martin Hutchinson Date: Thu, 22 Feb 2024 16:48:54 +0000 Subject: [PATCH] Update prod Slack message template to dev one (#108) The dev one is much nicer and has handled a number of builds happily so far. --- deployment/live/cloudbuild/prod/slack.json | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/deployment/live/cloudbuild/prod/slack.json b/deployment/live/cloudbuild/prod/slack.json index 1f9427d..f0ba023 100644 --- a/deployment/live/cloudbuild/prod/slack.json +++ b/deployment/live/cloudbuild/prod/slack.json @@ -1,14 +1,27 @@ [ { - "type": "section", + "type": "header", "text": { - "type": "mrkdwn", - "text": "Cloud Build {{.Build.ProjectId}} {{.Build.Id}} {{.Build.Status}}" + "type": "plain_text", + "text": "CloudBuild {{.Build.Status}}: {{.Build.Substitutions.REPO_NAME}} {{.Build.Substitutions.TRIGGER_NAME}}" } }, { "type": "divider" }, + { + "type": "section", + "fields": [ + { + "type": "mrkdwn", + "text": "*Branch*: {{.Build.Substitutions.BRANCH_NAME}}" + }, + { + "type": "mrkdwn", + "text": "*Commit*: {{.Build.Substitutions.SHORT_SHA}}" + } + ] + }, { "type": "section", "text": {