Skip to content

Commit

Permalink
Merge pull request #185 from carlisia/c-assign-pr
Browse files Browse the repository at this point in the history
Add auto-assign reviewers GH action
  • Loading branch information
cpanato authored Nov 16, 2020
2 parents ac0db69 + 2323546 commit 3a54acf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
addReviewers: true
addAssignees: author

# Set this to the length of the reviewers list because the default was not including everyone
numberOfReviewers: 3

reviewers:
- carlisia
- jenting
- cpanato
16 changes: 16 additions & 0 deletions .github/workflows/auto_assign_prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Auto Assign PR Reviewers'
# pull_request_target means that this will run on pull requests, but in the context of the base repo.
# This should mean PRs from forks are supported.
on:
pull_request_target:
types: [opened, reopened, sychronized]


jobs:
add-reviews:
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/[email protected]
with:
configuration-path: ".github/auto_assign.yml"
repo-token: '${{ secrets.GITHUB_TOKEN }}'

0 comments on commit 3a54acf

Please sign in to comment.