From 22f5870b970374a6948478b765ba62d691bea6b9 Mon Sep 17 00:00:00 2001 From: LekoArts Date: Thu, 23 Jan 2025 14:10:32 +0100 Subject: [PATCH 1/4] initial --- .github/workflows/slack-notification.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/slack-notification.yml b/.github/workflows/slack-notification.yml index 94dce92..b6a788e 100644 --- a/.github/workflows/slack-notification.yml +++ b/.github/workflows/slack-notification.yml @@ -9,7 +9,7 @@ jobs: name: Slack Notification runs-on: ubuntu-latest env: - PULL_REQUEST_BODY: ${{ github.event.pull_request.body }} + PULL_REQUEST_BODY: ${{ github.event.pull_request.body || '' }} steps: - name: Checkout repo uses: actions/checkout@v4 From 9d6f77df80b8e0d67823738065eef211179d267b Mon Sep 17 00:00:00 2001 From: LekoArts Date: Thu, 23 Jan 2025 14:12:53 +0100 Subject: [PATCH 2/4] debug --- .github/workflows/slack-notification.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/slack-notification.yml b/.github/workflows/slack-notification.yml index b6a788e..2778222 100644 --- a/.github/workflows/slack-notification.yml +++ b/.github/workflows/slack-notification.yml @@ -2,14 +2,14 @@ name: Slack Notification on: pull_request: - types: [opened] + types: [opened, reopened] jobs: slack-notify: name: Slack Notification runs-on: ubuntu-latest env: - PULL_REQUEST_BODY: ${{ github.event.pull_request.body || '' }} + PULL_REQUEST_BODY: ${{ github.event.pull_request.body || 'Empty Body' }} steps: - name: Checkout repo uses: actions/checkout@v4 From e105a0adb3298d774f111d8a550f1fab81b54e9e Mon Sep 17 00:00:00 2001 From: LekoArts Date: Thu, 23 Jan 2025 14:14:19 +0100 Subject: [PATCH 3/4] update default value --- .github/workflows/slack-notification.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/slack-notification.yml b/.github/workflows/slack-notification.yml index 2778222..b458de6 100644 --- a/.github/workflows/slack-notification.yml +++ b/.github/workflows/slack-notification.yml @@ -9,7 +9,7 @@ jobs: name: Slack Notification runs-on: ubuntu-latest env: - PULL_REQUEST_BODY: ${{ github.event.pull_request.body || 'Empty Body' }} + PULL_REQUEST_BODY: ${{ github.event.pull_request.body || 'The person did not write a PR description 😢' }} steps: - name: Checkout repo uses: actions/checkout@v4 From a566fd3e70989236ad131c0f1dcc401aae51fe29 Mon Sep 17 00:00:00 2001 From: LekoArts Date: Thu, 23 Jan 2025 14:15:17 +0100 Subject: [PATCH 4/4] remove debug --- .github/workflows/slack-notification.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/slack-notification.yml b/.github/workflows/slack-notification.yml index b458de6..afb503f 100644 --- a/.github/workflows/slack-notification.yml +++ b/.github/workflows/slack-notification.yml @@ -2,7 +2,7 @@ name: Slack Notification on: pull_request: - types: [opened, reopened] + types: [opened] jobs: slack-notify: