Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/snow-actions/unanimously-approved

Approved by all reviewers
https://github.com/snow-actions/unanimously-approved

actions github-actions pull-request pull-request-review

Last synced: about 2 months ago
JSON representation

Approved by all reviewers

Awesome Lists containing this project

README

        

# Unanimously Approved

Approved by all reviewers.

## Usage

Create `.github/workflows/unanimously-approved.yml`.

```yml
name: Unanimously Approved

on:
pull_request:
types: [opened, reopened, synchronize, review_requested, review_request_removed]
pull_request_review:
types: [submitted, dismissed]

jobs:
unanimously-approved:
runs-on: ubuntu-latest
timeout-minutes: 1

steps:
- uses: snow-actions/[email protected]
```

Add `review passing` status to branch protection rules.
(`unanimously-approved` status always success because each event creates status and outdated status prevents merge.)

## Supported

### Runners

See [ci.yml](.github/workflows/ci.yml)

- `ubuntu-*`
- `windows-*`
- `macos-*`
- `self-hosted`

### Events

- `pull_request`
- `pull_request_review`

## Success or Fail

* :heavy_check_mark: Success when all reviewers approve
* :x: Fail when some reviewers do not approve
* :x: Fail when there is no reviewers

## Inputs

Optional.
See [action.yml](action.yml)