forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 976 Bytes
/
notify-on-label.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
# Notify users/teams when labels are added to an issue.
name: Notify FE team for FE label on issues
on:
issues:
types: [labeled]
jobs:
notify:
name: "Notify FE team on label creation"
runs-on: ubuntu-latest
steps:
- name: Checkout Airbyte Repo for PAT command
uses: actions/checkout@v2
- name: Check PAT rate limits
# Cannot share PAT outside of JOB context
run: |
./tools/bin/find_non_rate_limited_PAT \
${{ secrets.OCTAVIA_4_ROOT_ACCESS }} \
${{ secrets.OCTAVIA_PAT }}
# Updated name to reflect reality. Update name if you change recipients
- name: Notify FE team when on FE label creation
uses: jenschelkopf/[email protected]
with:
token: "${{ env.PAT }}"
message: 'cc {recipients}'
# Specify a map of label -> team/user to notify
recipients: |
team/frontend=@airbytehq/frontend