From 7c5a82b9d950c4edfd1d97ab00ab54cb0e99d279 Mon Sep 17 00:00:00 2001 From: Debadree Chatterjee Date: Sat, 1 Apr 2023 12:40:43 +0530 Subject: [PATCH 1/2] tools: add a at here tag for slack messages --- .github/workflows/notify-on-push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/notify-on-push.yml b/.github/workflows/notify-on-push.yml index 36e62ee53c7334..3fc40d2f18aff8 100644 --- a/.github/workflows/notify-on-push.yml +++ b/.github/workflows/notify-on-push.yml @@ -20,7 +20,7 @@ jobs: SLACK_ICON: https://github.com/nodejs.png?size=48 SLACK_TITLE: ${{ github.actor }} force-pushed to ${{ github.ref }} SLACK_MESSAGE: | - A commit was force-pushed to by + @here A commit was force-pushed to by Before: After: @@ -62,7 +62,7 @@ jobs: SLACK_ICON: https://github.com/nodejs.png?size=48 SLACK_TITLE: Invalid commit was pushed to ${{ github.repository.default_branch }} SLACK_MESSAGE: | - A commit lacking the expected metadata was pushed to by . + @here A commit lacking the expected metadata was pushed to by . Before: After: From 5d24e9de322dd692c4257bad717ea5e899459c9b Mon Sep 17 00:00:00 2001 From: Debadree Chatterjee Date: Sat, 1 Apr 2023 15:15:05 +0530 Subject: [PATCH 2/2] tools: use ref_name to get branch pushed on --- .github/workflows/notify-on-push.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/notify-on-push.yml b/.github/workflows/notify-on-push.yml index 3fc40d2f18aff8..d1899984527ba4 100644 --- a/.github/workflows/notify-on-push.yml +++ b/.github/workflows/notify-on-push.yml @@ -20,7 +20,7 @@ jobs: SLACK_ICON: https://github.com/nodejs.png?size=48 SLACK_TITLE: ${{ github.actor }} force-pushed to ${{ github.ref }} SLACK_MESSAGE: | - @here A commit was force-pushed to by + @here A commit was force-pushed to by Before: After: @@ -62,7 +62,7 @@ jobs: SLACK_ICON: https://github.com/nodejs.png?size=48 SLACK_TITLE: Invalid commit was pushed to ${{ github.repository.default_branch }} SLACK_MESSAGE: | - @here A commit lacking the expected metadata was pushed to by . + @here A commit lacking the expected metadata was pushed to by . Before: After: