Skip to content

Commit a0bdf45

Browse files
jtblackjtblack-aws
authored andcommitted
chore: add Slack notification for new PRs
1 parent f961244 commit a0bdf45

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/slack-notify.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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 }}'

0 commit comments

Comments
 (0)