Notify Pending PR Reviewers #28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Notify Pending PR Reviewers | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 16 * * 1-5' # 11:00 AM CT M-F | |
jobs: | |
notify-reviewers: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
# Only checkout the master branch to avoid changes to this script | |
# This is to reduce the possibilities of a secret leak from modifying | |
# this action, or the python script that is called down below | |
ref: master | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests | |
- name: Run PR reminder script | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }} | |
run: | | |
python3 .github/pr-reminder.py |