From 6f997c80476350678dbe3b54ae68ceebaf096680 Mon Sep 17 00:00:00 2001 From: Xunzhuo Date: Tue, 11 Apr 2023 11:13:29 +0800 Subject: [PATCH] ci: auto assign reviewer-team when open pr (#1274) ci: auto assign reviewer-team when open issue/pr Signed-off-by: bitliu --- .github/workflows/assignee.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/assignee.yaml diff --git a/.github/workflows/assignee.yaml b/.github/workflows/assignee.yaml new file mode 100644 index 00000000000..ae3aaabd131 --- /dev/null +++ b/.github/workflows/assignee.yaml @@ -0,0 +1,19 @@ +name: Assign + +on: + pull_request_target: + types: [opened, reopened] + +jobs: + assign: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v6 + with: + script: | + github.rest.pulls.requested_reviewers({ + pull_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + team_reviewers: ['envoyproxy/gateway-reviewers'] + })