Skip to content

Releases: uesteibar/reviewer-lottery

v3.1.0

02 Jun 09:34
c291d74
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.0.0...v3.1.0

Upgrade to node 16

31 May 09:24
c89a2b0
Compare
Choose a tag to compare
Update to node 16 (#40)

* Update to node 16

* Update dependencies

v2.0.0: Make compatible with pull_request_target

13 Sep 07:44
5531ef7
Compare
Choose a tag to compare

To migrate to this version, .github/workflows/reviewer-lottery.yml needs to be updated to use pull_request_target event instead.

v1.1.0: Do not assign reviewers if the PR is in draft state

26 May 16:18
79bc8d8
Compare
Choose a tag to compare

Don't request reviews if the PR is in draft state

v1.0.1

23 May 23:18
677c39c
Compare
Choose a tag to compare

Update dependencies to fix security vulnerabilities

v1.0.0

23 May 22:51
1f8fb9c
Compare
Choose a tag to compare

Add your configuration on .github/reviewer-lottery.yml

groups:
  - name: devs # name of the group
    reviewers: 1 # how many reviewers do you want to assign?
    usernames: # github usernames of the reviewers
      - uesteibar
      - tebs
      - rudeayelo
      - marciobarrios

  - name: qas # you can have multiple groups, it will evaluate them separately
    reviewers: 1
    usernames:
      - some_user
      - someoneelse

The ideal workflow configuration is:

name: "test-lottery"
on:
  pull_request:
    types: [opened, ready_to_review, reopened]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - uses: uesteibar@reviewer-lottery@v1
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}

When opening a PR, this github action will assign random reviewers:

Screenshot 2020-05-23 at 18 28 22