From 4a005914f04e2753deb40f586bfb03fcbd3b89e0 Mon Sep 17 00:00:00 2001 From: Simon Templer Date: Wed, 16 Oct 2024 11:19:07 +0200 Subject: [PATCH] ci: add workflow to notify with comment for merged PR --- .github/workflows/merge-notification.yml | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/merge-notification.yml diff --git a/.github/workflows/merge-notification.yml b/.github/workflows/merge-notification.yml new file mode 100644 index 0000000..73ba317 --- /dev/null +++ b/.github/workflows/merge-notification.yml @@ -0,0 +1,25 @@ +name: Notify on PR merge + +on: + pull_request: + branches: + - master + types: [closed] + +jobs: + comment: + runs-on: ubuntu-latest + + # event docs see https://docs.github.com/de/webhooks/webhook-events-and-payloads?actionType=closed#pull_request + if: github.event.pull_request.merged == true + + timeout-minutes: 5 + + steps: + - name: Comment plan + uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0 + with: + token: ${{ github.token }} + issue-number: ${{ github.event.pull_request.number }} + body: | + @wetransform/service Please make sure that the PostNAS alignments are adapted accordingly.