Skip to content

Commit

Permalink
ci: add workflow to notify with comment for merged PR
Browse files Browse the repository at this point in the history
  • Loading branch information
stempler committed Oct 16, 2024
1 parent 69e5b26 commit 4a00591
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/merge-notification.yml
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit 4a00591

Please sign in to comment.