Slack PR Notification #304
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |