An open API service indexing awesome lists of open source software.

https://github.com/remind101/action-require-reviewer

Github workflow action to require a reviewer on pushed branches
https://github.com/remind101/action-require-reviewer

Last synced: over 1 year ago
JSON representation

Github workflow action to require a reviewer on pushed branches

Awesome Lists containing this project

README

          

# Require Reviewer

Check for a user/group to have reviewed a pull request

## Inputs

### `whoms`

**Required** Github user names or org groups. e.g. `username` or `@org/group`

### `GITHUB_TOKEN`

**Required** A token with the following permissions is required for organization related checks: `read:org` and `repo:status`

### `SKIP`

A common separated list of text to match in the pull body, which will skip this action if found.

### `SKIP_LABEL`

A single tag name that will skip verifiying this PR

## Outputs

### `missing`

Missing reviews from

## Example usage

Add an auth token with the correct permissions (see above) to your secrets as `AUTH_GITHUB_TOKEN`

```
on:
pull_request:
types: ['opened','synchronize','reopened','edited','labeled','unlabeled']
pull_request_review:
types: ['submitted','edited','dismissed']

jobs:
require_review:
runs-on: ubuntu-latest
name: Requires Review
steps:
- name: Check reviewers
uses: remind101/action-require-reviewer@v1
with:
whoms: "user,@team"
skip: "skip-review","skipreview"
skip_tag: "skip-review"
GITHUB_TOKEN: ${{ secrets.AUTH_GITHUB_TOKEN }}
```