-
Notifications
You must be signed in to change notification settings - Fork 9
22 lines (22 loc) · 934 Bytes
/
slack-notify-pr.yml
File metadata and controls
22 lines (22 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
on:
pull_request:
branches:
- master
types: [opened, reopened, closed]
name: Slack Pull Request Notification
jobs:
slackNotification:
name: Slack Notification PR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Slack Notification PR
uses: rtCamp/action-slack-notify@master
env:
SLACK_CHANNEL: partnereng-pullrequest
SLACK_COLOR: '#00A86B'
SLACK_ICON: https://pbs.twimg.com/profile_images/978188446178082817/86ulJdF0.jpg
SLACK_TITLE: "[${{ github.event.pull_request.state}}] ${{ github.event.pull_request.title }} on ${{ github.repository }} :rocket:"
SLACK_MESSAGE: 'Merging from ${{ github.head_ref }} to ${{ github.base_ref }} by ${{ github.actor }}. Link: ${{ github.event.pull_request._links.html.href }}'
SLACK_USERNAME: PartnerEngineers
SLACK_WEBHOOK: ${{ secrets.SLACK_PR_WEBHOOK }}