-
Notifications
You must be signed in to change notification settings - Fork 8
30 lines (29 loc) · 1.23 KB
/
issues.alert.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Alert on Issue Creation
on:
issues:
types: [opened, reopened]
jobs:
send_slack_notification:
name: Send Issue Alert Slack Notification
runs-on: ubuntu-latest
steps:
- name: Send slack notification for issue created
uses: rtCamp/action-slack-notify@v2
if: github.event.action == 'opened'
env:
SLACK_WEBHOOK: ${{ secrets.INTERNAL_DEV_SLACK_WEBHOOK_URL }}
SLACK_COLOR: 'success'
SLACK_TITLE: 'Issue Created'
SLACK_FOOTER: ''
MSG_MINIMAL: 'true'
SLACK_MESSAGE: '<!here> Issue <${{ github.event.issue.html_url }}|${{ github.event.issue.title }}> created by ${{ github.event.sender.login }}'
- name: Send slack notification for issue reopened
uses: rtCamp/action-slack-notify@v2
if: github.event.action == 'reopened'
env:
SLACK_WEBHOOK: ${{ secrets.INTERNAL_DEV_SLACK_WEBHOOK_URL }}
SLACK_COLOR: 'success'
SLACK_TITLE: 'Issue Reopened'
SLACK_FOOTER: ''
MSG_MINIMAL: 'true'
SLACK_MESSAGE: '<!here> Issue <${{ github.event.issue.html_url }}|${{ github.event.issue.title }}> reopened by ${{ github.event.sender.login }}'