Skip to content

Commit

Permalink
Add a new GitHub Action to auto-assign PR reviewers
Browse files Browse the repository at this point in the history
  • Loading branch information
na-- committed Oct 12, 2021
1 parent b068f66 commit 370254c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/pr-auto-assign-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
addReviewers: true
addAssignees: false
useReviewGroups: true
useAssigneeGroups: false
numberOfReviewers: 1
reviewGroups:
old:
- na--
- MStoykov
- imiric
new: # TODO: remove a few months from now
- codebien
- yorugac
- inancgumus
skipKeywords:
- wip
13 changes: 13 additions & 0 deletions .github/workflows/pr-auto-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Auto Assign'
on:
pull_request:
types: [opened, ready_for_review]

jobs:
add-reviews:
if: ${{ join(github.event.pull_request.requested_reviewers.*.login, ',') == '' }}
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/auto-assign-action@19c336bfad4fcb61cab8dcb6b6a5fe3e62ac5cd8 #v1.2.0
with:
configuration-path: ".github/pr-auto-assign-config.yml"

0 comments on commit 370254c

Please sign in to comment.