From f2e2b51ac64634d68f6c5af523a3a95631f1ac1f Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Wed, 12 Jun 2024 12:45:20 +0200 Subject: [PATCH] ci: Github action to auto-set PR reviewers --- .github/auto_assign.yml | 15 +++++++++++++++ .github/workflows/pr-auto-reviewers-team.yml | 11 +++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/auto_assign.yml create mode 100644 .github/workflows/pr-auto-reviewers-team.yml diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 000000000..a16d46ae4 --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,15 @@ +# Set to true to add reviewers to pull requests +addReviewers: true + +# Set to true to add assignees to pull requests +addAssignees: false + +# A list of reviewers to be added to pull requests (GitHub user name) +reviewers: # gip-inclusion/admins-le-marche + - madjid-asa + - raphodn + - SebastienReuiller + +# A number of reviewers added to the pull request +# Set 0 to add all the reviewers (default: 0) +numberOfReviewers: 0 diff --git a/.github/workflows/pr-auto-reviewers-team.yml b/.github/workflows/pr-auto-reviewers-team.yml new file mode 100644 index 000000000..772445584 --- /dev/null +++ b/.github/workflows/pr-auto-reviewers-team.yml @@ -0,0 +1,11 @@ +name: PR Auto Reviewers Team + +on: + pull_request: + types: [opened, ready_for_review] # will not run on drafts + +jobs: + add-reviews: + runs-on: ubuntu-latest + steps: + - uses: kentaro-m/auto-assign-action@v2.0.0