File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Slack New PR Notification
2+
3+ on :
4+ pull_request :
5+ branches : ['main']
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ send_starting_slack_notification :
12+ name : Send Starting Slack Notification
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Send PR Created Notification
16+ if : github.event_name == 'pull_request' && github.event.action == 'opened'
17+ uses : rtCamp/action-slack-notify@v2
18+ env :
19+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
20+ SLACK_TITLE : ' ${{github.event.repository.name}} PR Created: ${{ github.event.pull_request.title }} by ${{ github.event.pull_request.user.login }}'
21+ SLACK_FOOTER : ' '
22+ MSG_MINIMAL : true
23+ SLACK_MESSAGE : ' PR Created ${{ github.event.pull_request.html_url }}'
You can’t perform that action at this time.
0 commit comments