From 2980bcdc55ff3d68dfc53697a7ae071b4a399bd2 Mon Sep 17 00:00:00 2001 From: quentinchampenois <26109239+Quentinchampenois@users.noreply.github.com> Date: Wed, 9 Oct 2024 16:41:04 +0200 Subject: [PATCH] ci: Add reviewers CI --- .github/workflows/reviewers.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/reviewers.yml diff --git a/.github/workflows/reviewers.yml b/.github/workflows/reviewers.yml new file mode 100644 index 0000000000..460d8a0c67 --- /dev/null +++ b/.github/workflows/reviewers.yml @@ -0,0 +1,23 @@ +name: Review Assign + +on: + pull_request: + types: [opened, ready_for_review] + +jobs: + assign: + runs-on: ubuntu-latest + steps: + - uses: garnertb/get-team-members@v1 + with: + org: 'OpenSourcePolitics' + team_slug: 'reviewers' + token: ${{ secrets.GITHUB_TOKEN }} + + - run: "echo ${{ steps.get-members.outputs.members }}" + shell: bash + + - uses: hkusu/review-assign-action@v1 + with: + assignees: ${{ github.actor }} + reviewers: ${{ steps.get-members.outputs.members }}