Skip to content

Commit

Permalink
Replace use of uesteibar/reviewer-lottery with `kentaro-m/auto-assi…
Browse files Browse the repository at this point in the history
…gn-action` (#18157)
  • Loading branch information
SarahFrench committed May 16, 2024
1 parent 7d3480f commit 0bca798
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
33 changes: 20 additions & 13 deletions .github/reviewer-lottery.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

groups:
- name: devs
reviewers: 1
usernames:
- rileykarson
- slevenick
- c2thorn
- scottsuarez
- melinath
- shuyama1
# See https://github.com/kentaro-m/auto-assign-action?tab=readme-ov-file#single-reviewers-list

addReviewers: true # add reviewers to pull requests

addAssignees: false # don't add assignees to pull requests

# A list of reviewers to be added to pull requests (GitHub user name)
reviewers:
- rileykarson
- slevenick
- c2thorn
- scottsuarez
- melinath
- shuyama1
- SarahFrench
- BBBmau

# A number of reviewers added to the pull request
# Set 0 to add all the reviewers (default: 0)
numberOfReviewers: 1
11 changes: 6 additions & 5 deletions .github/workflows/pull-request-reviewer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ permissions:
pull-requests: write

jobs:
test:
add-reviewer:
if: ${{ github.actor != 'modular-magician' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: uesteibar/reviewer-lottery@c291d74388da1cb583aff994b8be945e8eefbcd5 # v3.1.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: kentaro-m/auto-assign-action@f4648c0a9fdb753479e9e75fc251f507ce17bb7e # v2.0.0
with:
configuration-path: ".github/reviewer-lottery.yml"
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 0bca798

Please sign in to comment.