Skip to content

Sync PR Review Board #238

Sync PR Review Board

Sync PR Review Board #238

name: Sync PR Review Board
# Keeps the org "PR Review Queue" project (number 3) in sync automatically:
# * adds every open PR across the org (Status = Todo)
# * marks merged/closed PRs as Done
# The board is owned by this workflow — no manual updates are expected.
on:
schedule:
- cron: "*/30 * * * *" # every 30 minutes
workflow_dispatch: # manual run from the Actions tab
permissions:
contents: read
concurrency:
group: sync-pr-review-board
cancel-in-progress: false
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Sync project board
env:
# PAT with `project` + `repo` scope. The default GITHUB_TOKEN
# cannot write to organization Projects v2, so a secret is required.
GH_TOKEN: ${{ secrets.PROJECTS_TOKEN }}
run: python3 scripts/sync_pr_review_board.py