diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 0000000..fdd9b0a --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,13 @@ +# Set to true to add reviewers to pull requests. +addReviewers: true + +# A number of reviewers added to the pull request +# Set 0 to add all the reviewers (default: 0) +numberOfReviewers: 0 + +# A list of reviewers to be added to pull requests (GitHub user name). +reviewers: + - sumanashrestha + +# Set addAssignees to 'author' to set the PR creator as the assignee. +addAssignees: author diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 0000000..04c335d --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,15 @@ +# This workflow will add reviewers and assignee +# on opened and ready_to_review pull requests. +# +# This workflow uses .github/auto_assign.yml file as configuration. + +name: Auto assign reviewers +on: + pull_request: + types: [opened, ready_for_review, reopened] + +jobs: + add-reviews: + runs-on: ubuntu-latest + steps: + - uses: kentaro-m/auto-assign-action@v1.2.5