From 4ba66bf02289bf81b1954a10d131672e7a868456 Mon Sep 17 00:00:00 2001 From: Ana Gelez Date: Wed, 11 Feb 2026 12:31:37 +0100 Subject: [PATCH] CI workflow to assign PRs to their reviewer It is easier to see who should review which PR this way. --- .github/workflows/review.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/review.yml diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml new file mode 100644 index 0000000000..1c3f9bbc7a --- /dev/null +++ b/.github/workflows/review.yml @@ -0,0 +1,18 @@ +on: + pull_request: + types: [review_requested] + +jobs: + mirror-reviewer-assignee: + name: "Assign the pull request to its reviewer" + runs-on: ubuntu-slim + strategy: + matrix: + login: ${{ github.event.pull_request.requested_reviewers.*.login }} + steps: + - run: gh pr edit ${{ github.event.number }} --add-assignee ${{ matrix.login }} + env: + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.event.repository.full_name }} + permissions: + pull-requests: write