forked from oppia/oppia
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 1.22 KB
/
pending-review-notification.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
33
34
35
name: Send pending review notifications to reviewer on github-discussion
on:
schedule:
# Every Tuesday and Thursday at 16:00 UTC.
- cron: '0 16 * * 2,4'
# GitHub doesn't provide assurance that the scheduled jobs will run on time
# (see https://github.community/t/no-assurance-on-scheduled-jobs/133753).
# So, we add the workflow_dispatch event here to allow triggering this
# workflow manually if needed.
workflow_dispatch:
jobs:
send_notifications:
name: Send pending review notifications
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.8.12'
architecture: 'x64'
- uses: DubeySandeep/pending-review-notification@v1
with:
team-slug: oppia-codeowners
repo-token: ${{ secrets.DISCUSSION_NOTIFICATION_TOKEN }}
review-turnaround-hours: 48
- name: Report if failed
if: ${{ failure() }}
uses: ./.github/actions/send-webhook-notification
with:
message: "A pending-review-notification workflow failed."
webhook-url: ${{ secrets.BUILD_FAILURE_ROOM_WEBHOOK_URL }}