From 84c59632fe28f43a6be85530ab3995b21d7f34d9 Mon Sep 17 00:00:00 2001 From: kinari321 Date: Mon, 12 Dec 2022 23:06:04 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20pr=20=E3=81=AB=20assignees=20=E3=82=92?= =?UTF-8?q?=E8=87=AA=E5=8B=95=E4=BB=98=E4=B8=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/assign.yml | 19 ++++++++++++ .../workflows/assign-reviewers-assignees.yml | 30 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .github/assign.yml create mode 100644 .github/workflows/assign-reviewers-assignees.yml diff --git a/.github/assign.yml b/.github/assign.yml new file mode 100644 index 0000000..0430bb2 --- /dev/null +++ b/.github/assign.yml @@ -0,0 +1,19 @@ +# +# レビュアーとアサイン(担当者)の設定 +# +# actions/auto-assign-action 用 +# +# GitHub +# - https://github.com/marketplace/actions/auto-assign-action +# +--- + +# アサインを追加 +addAssignees: author + +# レビュアーを追加 +addReviewers: true + +# レビュアーのリスト +reviewGroups: + - sunabak0/akiyadego diff --git a/.github/workflows/assign-reviewers-assignees.yml b/.github/workflows/assign-reviewers-assignees.yml new file mode 100644 index 0000000..fbd56d3 --- /dev/null +++ b/.github/workflows/assign-reviewers-assignees.yml @@ -0,0 +1,30 @@ +--- +name: Assign PR Reviewers and Assignees + +# +# 'on' にしている理由 +# yamllintで怒られるため +# +# 参考: https://github.com/adrienverge/yamllint/issues/430 +# +'on': + pull_request: + types: [opened, ready_for_review] + branches-ignore: + - 'renovate/**' + +jobs: + assign-reviewers-assignees: + # + # PR 元が renovate 起因の場合、 job skip + # (renovate 起因の場合、ブランチ名は renovate/**) + # + if: ${{ !startsWith(github.head_ref, 'renovate/') }} + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: PR にレビュアーとアサインを追加 + uses: kentaro-m/auto-assign-action@v1.2.4 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + configuration-path: '.github/assign.yml'