From d17a102cedc9dac3460a043dbf74f5c7e210940d Mon Sep 17 00:00:00 2001 From: Marcel Date: Fri, 25 Nov 2022 17:46:06 +0100 Subject: [PATCH] Add github action to assign maintainers to PRs (#983) * Add github action to assign maintainers to PRs --- .github/auto-assignees.yaml | 31 ++++++++++++++++++++++++++ .github/workflows/auto-assign-prs.yaml | 17 ++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .github/auto-assignees.yaml create mode 100644 .github/workflows/auto-assign-prs.yaml diff --git a/.github/auto-assignees.yaml b/.github/auto-assignees.yaml new file mode 100644 index 000000000..ffb32c952 --- /dev/null +++ b/.github/auto-assignees.yaml @@ -0,0 +1,31 @@ +# This assigns a PR to its author +addAssignees: true + +addReviewers: false + +reviewers: + - holyhope + - sguyennet + - jMonsinjon + - steven-zou + - mhurtrel + - heww + - bitsf + - wangcanfengxs + - Ghostbaby + - soulseen + - chlins + - XavierDuthil + - cndoit18 + - lubronzhan + - yxxhero + - wy65701436 + +options: + ignore_draft: true + ignored_keywords: + - WIP + - wip + - DO NOT MERGE + enable_group_assignment: true + number_of_reviewers: 2 diff --git a/.github/workflows/auto-assign-prs.yaml b/.github/workflows/auto-assign-prs.yaml new file mode 100644 index 000000000..d11983c9d --- /dev/null +++ b/.github/workflows/auto-assign-prs.yaml @@ -0,0 +1,17 @@ +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.yaml"