-
Notifications
You must be signed in to change notification settings - Fork 81
18 lines (17 loc) · 938 Bytes
/
slack.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
name: Notify on merged PR
on:
pull_request:
# types:
# - closed
jobs:
notify_merged_pr:
name: Notify on merged PR
runs-on: ubuntu-22.04
# if: ${{ github.event.pull_request.merged == true }}
steps:
- uses: abinoda/slack-action@master
env:
SLACK_BOT_TOKEN: ${{ secrets.VIZZUHQ_SLACK_API }}
with:
args: '{\"channel\":\"${{ secrets.VIZZUHQ_SLACK_CHANNEL }}\",\"blocks\":[{\"type\":\"section\",\"text\":{\"type\":\"mrkdwn\",\"text\":\"*PR:* ${{ github.event.pull_request.title }}\n*Description :* ${{ github.event.pull_request.body }}\n*Opened by :* ${{ github.event.pull_request.user.login }}\n*Requested reviewers :* ${{ github.event.pull_request.user.login }}\n*Merged at:* ${{ github.event.pull_request.merged_at }}\n<${{ github.event.pull_request.html_url }}|View PR>\"}}]}'
if: success()