From c80ddcf45ba0661cbad9ab709b3d49328f1779e7 Mon Sep 17 00:00:00 2001 From: OrlinVasilev Date: Mon, 13 Feb 2023 15:23:21 +0200 Subject: [PATCH] Add auto-assignees for PRs Signed-off-by: OrlinVasilev --- .github/auto-assignees.yml | 17 +++++++++++++++++ .github/workflows/auto_assign_prs.yml | 18 ++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/auto-assignees.yml create mode 100644 .github/workflows/auto_assign_prs.yml diff --git a/.github/auto-assignees.yml b/.github/auto-assignees.yml new file mode 100644 index 00000000..7680e232 --- /dev/null +++ b/.github/auto-assignees.yml @@ -0,0 +1,17 @@ +--- +# This assigns a PR to its author +addAssignees: true + +addReviewers: false + +assignees: + - wy65701436 + - Vad1mo + - OrlinVasilev + - stonezdj + - chlins + - zyyw + - MinerYang + - AllForNothing + +numberOfAssignees: 3 diff --git a/.github/workflows/auto_assign_prs.yml b/.github/workflows/auto_assign_prs.yml new file mode 100644 index 00000000..0bcdffb1 --- /dev/null +++ b/.github/workflows/auto_assign_prs.yml @@ -0,0 +1,18 @@ +--- +name: "Auto Assign" + +# pull_request_target means that this will run on pull requests, but in +# the context of the base repo. This should mean PRs from forks are supported. +on: + pull_request_target: + types: [opened, reopened, ready_for_review] + +jobs: + # Automatically assigns reviewers and owner + add-reviews: + runs-on: ubuntu-latest + steps: + - name: Set the author of a PR as the assignee + uses: kentaro-m/auto-assign-action@v1.2.4 + with: + configuration-path: ".github/auto-assignees.yml"