Skip to content

Commit 34b0ed2

Browse files
authored
✨ feat: PR Open 시 Slack 알림 Github Action 추가 (#81)
1 parent 3c89ab6 commit 34b0ed2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: slack-notify-pr-open
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened]
6+
7+
jobs:
8+
notify:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Send Slack notification
12+
uses: rtCamp/action-slack-notify@v2
13+
env:
14+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
15+
SLACK_USERNAME: Github CI
16+
SLACK_ICON: https://github.com/github.png
17+
MSG_MINIMAL: ref,event
18+
SLACK_COLOR: '#36a64f'
19+
SLACK_TITLE: 'New Pull Request 🚀'
20+
SLACK_MESSAGE: |
21+
#${{ github.event.pull_request.number }} ${{ github.event.pull_request.title }}
22+
🔗 ${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)