Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
eye

GitHub Action

Reviewer lottery

v1.0.0

Reviewer lottery

eye

Reviewer lottery

Automatically assign reviewers to Pull Requests

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Reviewer lottery

uses: uesteibar/[email protected]

Learn more about this action in uesteibar/reviewer-lottery

Choose a version

Reviewer lottery (Github Action)

This is a github action to add automatic reviewer lottery to your pull requests.

#Installation

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: ./
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}

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

Developing

Install the dependencies

$ npm install

Build the typescript and package it for distribution

$ npm run build && npm run pack

Run the tests ✔️

$ npm test

Publishing

See the versioning documentation

Validate

Usage:

After testing you can create a v1 tag to reference the stable and latest V1 action