From 69748f3834c734de568ea8a069073594761f2c9d Mon Sep 17 00:00:00 2001 From: HelgaVashchenko <160721962+HelgaVashchenko@users.noreply.github.com> Date: Mon, 29 Dec 2025 13:37:44 +0200 Subject: [PATCH] Refactor Slack notification blocks in CircleCI config --- .circleci/config.yml | 96 ++++++++++++++++++++++---------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dbc5668..2570e51 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,30 +13,30 @@ commands: event: fail custom: | { - "blocks": [ - { - "type": "section", - "fields": [ - { - "type": "mrkdwn", - "text": ":red_circle: *$CIRCLE_PROJECT_REPONAME*:*$CIRCLE_TAG* build failed" - } - ] - }, - { - "type": "actions", - "elements": [ - { - "type": "button", - "text": { - "type": "plain_text", - "text": "View Job" - }, - "url": "${CIRCLE_BUILD_URL}" - } - ] - } - ] + "blocks": [ + { + "type": "section", + "fields": [ + { + "type": "mrkdwn", + "text": ":red_circle: *$CIRCLE_PROJECT_REPONAME*:*$CIRCLE_TAG* build failed" + } + ] + }, + { + "type": "actions", + "elements": [ + { + "type": "button", + "text": { + "type": "plain_text", + "text": "View Job" + }, + "url": "${CIRCLE_BUILD_URL}" + } + ] + } + ] } notify_on_pass: steps: @@ -44,30 +44,30 @@ commands: event: pass custom: | { - "blocks": [ - { - "type": "section", - "fields": [ - { - "type": "mrkdwn", - "text": ":tada: *$CIRCLE_PROJECT_REPONAME*:*$CIRCLE_TAG* was successfully built and published" - } - ] - }, - { - "type": "actions", - "elements": [ - { - "type": "button", - "text": { - "type": "plain_text", - "text": "View Job" - }, - "url": "${CIRCLE_BUILD_URL}" - } - ] - } - ] + "blocks": [ + { + "type": "section", + "fields": [ + { + "type": "mrkdwn", + "text": ":tada: *$CIRCLE_PROJECT_REPONAME*:*$CIRCLE_TAG* was successfully built and published" + } + ] + }, + { + "type": "actions", + "elements": [ + { + "type": "button", + "text": { + "type": "plain_text", + "text": "View Job" + }, + "url": "${CIRCLE_BUILD_URL}" + } + ] + } + ] } jobs: test: