Skip to content

Commit

Permalink
Merge 5019d8c into 41fdec9
Browse files Browse the repository at this point in the history
  • Loading branch information
necojackarc committed Jan 20, 2021
2 parents 41fdec9 + 5019d8c commit 79c236e
Show file tree
Hide file tree
Showing 8 changed files with 1,704 additions and 35 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This GitHub Action best suits any of the following needs:
- You'd like to specify reviewers per author
- You'd like to get all of the other team members to review
- You'd like to keep code owners real code owners, not just reviewers
- You'd like to randomly pick reviewers based on the conditions mentioned above

Overall, if you'd like to request review to a certain set of members based on groups and/or files changed, this GitHub Action works best.

Expand All @@ -27,6 +28,7 @@ This GitHub Action enables you to:
- Auto-assign reviewers based on the author
- Auto-assign reviewers based on groups that the author belongs to
- Auto-assign the default reviewers if no reviewers are matched to your rules
- Randomly pick reviewers from matching reviewers
- Request review only in certain conditions

### Auto-assign reviewers based on files changed
Expand Down Expand Up @@ -81,6 +83,14 @@ reviewers:
- repository-owners
```

### Randomly pick reviewers from matching reviewers
You can randomly assign reviewers out of those who meet the conditions you set (e.g. file changes, groups, etc.).

```yaml
options:
number_of_reviewers: 3
```

### Request review only in certain conditions
If you don't like to have the pull requests considered not yet ready reviewed, you can set `ignore_draft` and `ignored_keywords` options.

Expand Down Expand Up @@ -157,6 +167,10 @@ options:
ignored_keywords:
- DO NOT REVIEW
enable_group_assignment: false

# Randomly pick reviewers up to this number.
# Do not set this option if you'd like to assign all matching reviewers.
number_of_reviewers: 3
```

The default configuration file location is `.github/auto_request_review.yml` but you can override it in your workflow configuration file.
Expand Down
Loading

0 comments on commit 79c236e

Please sign in to comment.