Skip to content

snow-actions/unanimously-approved

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Unanimously Approved

Approved by all reviewers.

Usage

Create .github/workflows/unanimously-approved.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

  • ubuntu-*
  • windows-*
  • macos-*
  • self-hosted

Events

  • pull_request
  • pull_request_review

Success or Fail

  • ✔️ Success when all reviewers approve
  • ❌ Fail when some reviewers do not approve
  • ❌ Fail when there is no reviewers

Inputs

Optional.
See action.yml