Skip to content

Commit

Permalink
added author and reviewers list
Browse files Browse the repository at this point in the history
  • Loading branch information
veghdev committed Jan 10, 2024
1 parent 4cf099a commit ce0c7e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/slack.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: Notify on merged PR
on:
pull_request:
types:
- closed
# types:
# - closed

jobs:
notify_merged_pr:
name: Notify on merged PR
runs-on: ubuntu-22.04
if: ${{ github.event.pull_request.merged == true }}
# 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*Merged at:* ${{ github.event.pull_request.merged_at }}\n<${{ github.event.pull_request.html_url }}|View PR>\"}}]}'
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()

0 comments on commit ce0c7e4

Please sign in to comment.