-
Notifications
You must be signed in to change notification settings - Fork 50
32 lines (28 loc) · 1.18 KB
/
issue-notifier.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
31
32
name: Notify on community issue creation and updates
on:
issues:
types: [opened, labeled]
jobs:
notify:
runs-on: ubuntu-latest
steps:
# Notify when a new issue is created with community label
- name: Send Discord Notification for New Community Issues
if: |
github.event_name == 'issues' &&
github.event.action == 'opened' &&
contains(github.event.issue.labels.*.name, 'community')
run: |
curl -H "Content-Type: application/json" \
-d "{\"content\": \"🆕 New community issue created: ${{ github.event.issue.html_url }}\"}" \
${{ secrets.DISCORD_WEBHOOK }}
# Notify when community label is added to an existing issue
- name: Send Discord Notification when Community Label is Added
if: |
github.event_name == 'issues' &&
github.event.action == 'labeled' &&
github.event.label.name == 'community'
run: |
curl -H "Content-Type: application/json" \
-d "{\"content\": \"🏷️ Community label added to issue: ${{ github.event.issue.html_url }}\"}" \
${{ secrets.DISCORD_WEBHOOK }}