Skip to content

Slack PR Notification #303

Slack PR Notification

Slack PR Notification #303

Workflow file for this run

name: Slack PR Notification
on:
pull_request:
types: [opened, closed, reopened]
pull_request_review:
types: [submitted]
jobs:
slack-notify:
runs-on: ubuntu-latest
steps:
- name: Send PR event to Slack
uses: slackapi/[email protected]
with:
payload: |
{
"text": "${{ github.event.action == 'submitted' && '🔎 PR 리뷰가 등록되었습니다' || github.event.action == 'closed' && github.event.pull_request.merged && '✅ PR이 머지되었습니다' || github.event.action == 'opened' && '🚀 새 PR이 생성되었습니다' || '🔄 PR 이벤트가 발생했습니다' }}: *${{ github.event.pull_request.title }}* by `${{ github.event.pull_request.user.login }}`\n<${{ github.event.pull_request.html_url }}|PR 보러가기>"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}