From d640e4465d4692c292eacf3e07d9ad07487bfb24 Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Sat, 17 Feb 2024 13:35:37 +0000 Subject: [PATCH] Use reusable-reviewer-lottery from ros2_control_ci --- .github/workflows/reviewer_lottery.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/reviewer_lottery.yml b/.github/workflows/reviewer_lottery.yml index 79695914a2..0584f4a7f3 100644 --- a/.github/workflows/reviewer_lottery.yml +++ b/.github/workflows/reviewer_lottery.yml @@ -1,15 +1,10 @@ name: Reviewer lottery +# pull_request_target takes the same events as pull_request, +# but it runs on the base branch instead of the head branch. on: pull_request_target: types: [opened, ready_for_review, reopened] jobs: assign_reviewers: - runs-on: ubuntu-latest - if: github.actor != 'dependabot[bot]' && github.actor != 'mergify[bot]' - steps: - - uses: actions/checkout@v4 - - uses: uesteibar/reviewer-lottery@v3 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - config: ros-controls/ros2_control_ci/.github/reviewer-lottery.yml + uses: ros-controls/ros2_control_ci/.github/workflows/reusable-reviewer-lottery.yml@master