Skip to content

Commit 7344a8a

Browse files
authored
feat: 슬랙 연동 yaml 파일 설정
1 parent 5d0e5b7 commit 7344a8a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/slack-pr.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Slack PR Notification
2+
on:
3+
pull_request:
4+
types: [opened, closed, reopened]
5+
pull_request_review:
6+
types: [submitted]
7+
jobs:
8+
slack-notify:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Send PR event to Slack
12+
uses: slackapi/[email protected]
13+
with:
14+
payload: |
15+
{
16+
"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 보러가기>"
17+
}
18+
env:
19+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 commit comments

Comments
 (0)