From 6c0db247b755fee71f0d3afdff01a75f9ea2efc3 Mon Sep 17 00:00:00 2001 From: Yifeng Wang Date: Wed, 15 Feb 2023 09:18:07 +0800 Subject: [PATCH] ci: support pr auto assign (#1004) --- .github/auto_assign.yml | 8 ++++++++ .github/workflows/pr-auto-assign.yml | 12 ++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .github/auto_assign.yml create mode 100644 .github/workflows/pr-auto-assign.yml diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 000000000..eb9afcafc --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,8 @@ +# This is used for tracking in GitHub project. +# See https://github.com/marketplace/actions/auto-assign-action + +# Set to true to add reviewers to pull requests +addReviewers: false + +# Set to true to add assignees to pull requests +addAssignees: author diff --git a/.github/workflows/pr-auto-assign.yml b/.github/workflows/pr-auto-assign.yml new file mode 100644 index 000000000..96f3ce8dd --- /dev/null +++ b/.github/workflows/pr-auto-assign.yml @@ -0,0 +1,12 @@ +name: Pull request auto assign + +# on: pull_request +on: + pull_request: + types: [opened, ready_for_review] + +jobs: + add-reviews: + runs-on: ubuntu-latest + steps: + - uses: kentaro-m/auto-assign-action@v1.2.4