From 1f8c7296558f3b8807d7ef61a71330b4a82393dd Mon Sep 17 00:00:00 2001 From: Thomas Willson Date: Thu, 1 Oct 2026 15:06:33 -0700 Subject: [PATCH] Assign reviewers on this repo's own PRs Adds the same AssignReviewers caller the BMS2000 repos use, so PRs here get a domain approver and a rotation reviewer too. PRs from forks are skipped: this repo is public, and fork PRs get no secrets for the app token. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/assign-reviewers.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/assign-reviewers.yml diff --git a/.github/workflows/assign-reviewers.yml b/.github/workflows/assign-reviewers.yml new file mode 100644 index 0000000..c86f086 --- /dev/null +++ b/.github/workflows/assign-reviewers.yml @@ -0,0 +1,22 @@ +name: Assign reviewers + +on: + pull_request: + types: [opened, reopened, ready_for_review] + +permissions: {} + +jobs: + assign: + # This repo is public: PRs from forks get no secrets, so skip them. + if: ${{ !github.event.pull_request.draft && github.event.pull_request.head.repo.full_name == github.repository }} + runs-on: ubuntu-latest + steps: + - uses: actions/create-github-app-token@v2 + id: app + with: + app-id: ${{ vars.STAFL_CI_APP_ID }} + private-key: ${{ secrets.STAFL_CI_PRIVATE_KEY }} + - uses: StaflSystems/CustomGithubActions/AssignReviewers@main + with: + token: ${{ steps.app.outputs.token }}