From c12f8e206df1718424fa0aa012158832ad2f8a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Qui=C3=B1ones?= Date: Mon, 3 Feb 2025 19:02:22 -0500 Subject: [PATCH] ci: added workflow to automatically add reviewers to pull requests --- .github/auto_assign.yml | 9 +++++++++ .github/workflows/pr-setup.yml | 20 ++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/auto_assign.yml create mode 100644 .github/workflows/pr-setup.yml diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 0000000..d886c97 --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,9 @@ +runOnDraft: false +addReviewers: true +addAssignees: author +reviewers: + - luisnquin + +# 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-setup.yml b/.github/workflows/pr-setup.yml new file mode 100644 index 0000000..9d77f7c --- /dev/null +++ b/.github/workflows/pr-setup.yml @@ -0,0 +1,20 @@ +name: Pull request setup +on: + pull_request: + types: + - opened + - ready_for_review + +permissions: + contents: read + pull-requests: write + +jobs: + add-reviewers-assignees: + name: Add reviewers and assignees + runs-on: ubuntu-latest + steps: + - name: Add reviewers and assignees + uses: kentaro-m/auto-assign-action@v2.0.0 + with: + configuration-path: .github/auto_assign.yml