From e7464d3ecf51cea9a3cf18d7c0b59d4111b6c69a Mon Sep 17 00:00:00 2001 From: Kentaro Matsushita Date: Wed, 16 Sep 2020 01:44:07 +0900 Subject: [PATCH] Add workflow to add reviewers to PR (#34) * Add workflow to add reviewers to PR * Enable self assign to PR --- .github/auto_assign.yml | 18 ++++++++++++++++++ .github/workflows/pull-request.yml | 8 ++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/auto_assign.yml create mode 100644 .github/workflows/pull-request.yml diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 00000000..16428563 --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,18 @@ +# Set to true to add reviewers to pull requests +addReviewers: false + +# Set to true to add assignees to pull requests +addAssignees: author + +# A list of assignees, overrides reviewers if set +assignees: + - kentaro-m + +# A number of assignees to add to the pull request +# Set to 0 to add all of the assignees. +# Uses numberOfReviewers if unset. +numberOfAssignees: 0 + +# A list of keywords to be skipped the process that add reviewers if pull requests include it +skipKeywords: + - wip \ No newline at end of file diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 00000000..d03ca068 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,8 @@ +name: 'Auto Assign' +on: pull_request + +jobs: + add-reviews: + runs-on: ubuntu-latest + steps: + - uses: kentaro-m/auto-assign-action@v1.1.2