You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Reviewer lottery
v1.0.0
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:
Install the dependencies
$ npm install
Build the typescript and package it for distribution
$ npm run build && npm run pack
Run the tests ✔️
$ npm test
See the versioning documentation
After testing you can create a v1 tag to reference the stable and latest V1 action