Skip to content

Commit

Permalink
Reviewer lottery for dependabot PRs (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-romero authored Jul 11, 2024
1 parent 7e54b77 commit ea8311e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/reviewer-lottery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# The auto-assign bot will randomly select a reviewer from this list of usernames.
groups:
- name: dependabot-reviewers
reviewers: 1
usernames:
- robotrapta
- tyler-romero
- sunildkumar
- tomfaulhaber
- roxanne-o
- timmarkhuff
- brandon-groundlight
- f-wright
- CoreyEWood
- honeytung
20 changes: 20 additions & 0 deletions .github/workflows/autoassign.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Auto assign random reviewers to Dependabot PRs
name: auto-assign

on:
pull_request_target:
types: [opened, ready_for_review, reopened]
workflow_dispatch:

jobs:
assign-pr-reviewer:
# Only run this on Dependabot PRs
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: checkout code
- uses: uesteibar/reviewer-lottery@v3
name: randomly assign reviewer
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ea8311e

Please sign in to comment.