Skip to content

[angular-ngrx-scss] issues tab #48

[angular-ngrx-scss] issues tab

[angular-ngrx-scss] issues tab #48

name: "Send Slack notification when PR is merged"
on:
pull_request:
types:
- closed
jobs:
send-slack-notification:
if: github.event.pull_request.merged == true && github.event.pull_request.user.login != 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Send Slack message
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "A PR was just merged into the starter.dev GitHub showcases repo :tada:",
"emoji": true
}
},
{
"type": "divider"
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*${{ github.event.pull_request.user.login }}* has just contributed to the starter.dev GitHub showcases repo :partying_face:"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*${{ github.event.pull_request.user.login }}* made the following changes: <${{ github.event.pull_request.html_url }}|${{ github.event.pull_request.title }}>"
}
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK